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

Color subtrees according to clusters #15

Closed
jpsglouzon opened this issue Mar 7, 2016 · 5 comments
Closed

Color subtrees according to clusters #15

jpsglouzon opened this issue Mar 7, 2016 · 5 comments
Assignees
Labels

Comments

@jpsglouzon
Copy link

Dear @spond,

The example here (http://bl.ocks.org/spond/dbc459acfaa6f134c67d) is pretty useful. Is there a way to not only color the leaves but the subtres corresponding to the clusters.

Thanks

@spond
Copy link
Member

spond commented Mar 10, 2016

Dear @jpsglouzon,

Yes, it can be done, but because you only label the terminal branches, you need to decide how to propagate the colors up the tree. For example, how do you color this subtree, where one of the terminal branches has no assignment (or belongs to a different cluster)?

screen shot 2016-03-10 at 1 15 35 pm

Sergei

@spond spond added the question label Mar 10, 2016
@spond spond self-assigned this Mar 10, 2016
@jpsglouzon
Copy link
Author

Dear @spond,
Regarding the example, i realize that i made a mistake in the provided annotation.csv. In fact CCCvd have to replaced by CCCVd. That's why it's not colored properly. Clusters are typically subtrees and it would be nice to color the corresponding subtrees:
tree

Thanks,
JP

@spond
Copy link
Member

spond commented Mar 11, 2016

Hi @jpsglouzon,

OK, in other words you want to color internal branches if and only if all of their descendants belong to a cluster, correct?

Sergei

@spond
Copy link
Member

spond commented Mar 11, 2016

Dear @jpsglouzon,

I updated http://bl.ocks.org/spond/dbc459acfaa6f134c67d to color internal branches as well.

Sergei

@jpsglouzon
Copy link
Author

Great! Thank your very much Sergei.
JP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants