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

feature: Rotate all labels at once using annotation_rotation #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nesper94
Copy link

Hi,

Thanks a lot for this amazing software, I have found it very useful!
I was using GraPhlAn and wanted a way to rotate all labels at once, and avoid editing clade by clade in the annotation file, so this was my way to do it.

I am biologist and I have not formal formation in programming, and I don't understand completely the working of GraPhlAn, so I apologize in advance if there are issues with this code. However, I have tested it in some cases (not a thorough testing) and it worked without problems.

The main idea is to be able to rotate 90° all labels by setting annotation_rotation 90 in the annotation file. If annotation_rotation is set in a clade, it overrides the global option. annotation_rotation still have two possible values: 0 and 90.

Here is an example annotation file showing how the new feature would be used. I also provide the corresponding input tree for graphlan_annotate.py. The output should be:

glob_90_clade_0

Hope you find it useful and if not implementable maybe can help to shed some light in the implementation of this feature.
Thanks!

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.

None yet

1 participant