Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add jcvi.graphics.ribbon module #733

Merged
merged 50 commits into from
Dec 26, 2024
Merged

Conversation

Adamtaranto
Copy link
Collaborator

@Adamtaranto Adamtaranto commented Dec 25, 2024

When complete, this PR will add a new module jcvi.graphic.ribbon which is derived from the synteny module.

Closes #724

Ribbon adds support for plotting whole genome alignments instead of linked orthologous genes.

  • Set contig orientation
  • Set contig zoom interval
  • Manually set ribbon colours
  • Convert LASTZ to ribbon link format
  • Set annotation track offsets
  • Set annotation track colours
  • Add tests for processing new config format
  • Use base logger

if savefig fails. Instead just return error msg.
Allows collection of outputs.
Added redirect_error arg so stderr can be
redirected to stdout and user in error logging.
Copy link
Owner

@tanghaibao tanghaibao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and thanks for adding this module. Some minor comments then we should be able to merge.

jcvi/graphics/base.py Show resolved Hide resolved
jcvi/graphics/ribbon.py Outdated Show resolved Hide resolved
temp/ribbon_testing/data/3S_genes.bed Outdated Show resolved Hide resolved
@Adamtaranto
Copy link
Collaborator Author

Note: Black formatter action seems to fail when PR is not owned by tanghaibao/jcvi.

Need to look into this.

@tanghaibao tanghaibao merged commit 0a5b1f3 into tanghaibao:main Dec 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom alignment blocks in Microsynteny plots
2 participants