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

Show collapsed clades using a traingle instead of the cloud #408

Open
santule opened this issue Mar 21, 2022 · 3 comments
Open

Show collapsed clades using a traingle instead of the cloud #408

santule opened this issue Mar 21, 2022 · 3 comments

Comments

@santule
Copy link

santule commented Mar 21, 2022

Hello,

Thank you for this amazing phylotree.js library, it allows you to customize so many things. After researching a few libraries, I settled on this one to visualize a phylogenetic tree.

I am trying to change the shape of collapsed nodes, by default it shows a steel blue cloud. But I want to show a triangle/pie and color it. I know I need to change the SVG element somehow, but I was wondering if there are some properties that would allow me to change the shape of a collapsed node?

Example below:

Screen Shot 2022-03-21 at 9 35 16 pm

Thank you for your help,
Sanjana

@santule
Copy link
Author

santule commented Mar 23, 2022

Has anyone tried to change the clade color based on the node annotation? I see there are clade properties you can manipulate but how to change them when calling tree. render? If anyone has done this before, your help is much appreciated.

@spond
Copy link
Member

spond commented Apr 5, 2022

Dear @santule,

Collapsed clade representation via "clouds" is currently hardcoded; the original idea was to depict subtree structure which is lost by using triangles for everything. You present an interesting use case, and I am considering adding support for such features, i.e. different render options for collapsed clades, and coloring / labeling these collapsed clades. Let me tinker with the code.

Best,
Sergei

@santule
Copy link
Author

santule commented Apr 6, 2022

That would be awesome, we have 10,000+ sequences. The idea is for the user to know where he/she is in the tree at the same time focusing on a particular clade. So we will achieve this by collapsing all nodes with their summary except for TIER1 nodes. Thank you for your response.

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

No branches or pull requests

2 participants