-
Notifications
You must be signed in to change notification settings - Fork 29
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
Adding extra elements on tree plots #14
Comments
Hey!
You can customize and pass the following lambda functions to plotPoints(),
|
Hey @gkarthik, thank you for your quick response. For 1, your suggestion solved the issue! ✨ Thank you. For 4, I've been defining the clade of interest from its
and Any idea of what is wrong? 6.87 as height is the expected result, but baltic is using the original tree height (48.907069), despite |
The root of the tree is set to the mrca's parent. Could you confirm that |
Correct: |
Seems like the parent of the mrca is the root of the entire tree? A quick fix might be to pass a @evogytis might have better suggestions (accounting for time zone differences 😄). |
Thank you, @gkarthik. Do you have any suggestions concerning the points 2 (tMRCA violin plots) and 3 (Time ticks in months)? |
|
@gkarthik thanks for taking care of this! :) |
Hey, thank you for setting
baltic
up as a python package: the installation was much easier now. I installed it days ago, and since them I've been playing with its functionalities. I have a question about plotting extra elements on trees. I'm trying to achieve a result similar to this baltic figure.The extra elements I want to plot are:
Concerning 1, I was wondering how I can achieve that using a function similar to
plotPoints
, but for nodes, not leaves.Concerning 4, I tried to apply the function
subtree
, however, instead of getting a tree rooted at the selectedcommonAncestor
tMRCA (2012.58),baltic
is keeping the root of the original tree (1970.55). As a result, when using the cmap 'hsv', instead of having a gradient from blue to red, in the final plot I only see red/magenta hues (indicating the misplacement of the root decades before the expected).Since I couldn't find specific instructions on austhecia or curonia, I was wondering if you have any examples on how to plot these elements.
Thank you.
Cheers
The text was updated successfully, but these errors were encountered: