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

Colors not updating (alert the user when there's no unique features) #161

Closed
pavlo888 opened this issue May 23, 2020 · 3 comments · Fixed by #189 or #239
Closed

Colors not updating (alert the user when there's no unique features) #161

pavlo888 opened this issue May 23, 2020 · 3 comments · Fixed by #189 or #239

Comments

@pavlo888
Copy link

Hi,

First of all, this new tool looks awesome! But I am trying to visualise the tree based on different metadata colors and I only get coloured lines when the metadata variable has only one value, but no colouring when the metadata variable has more than one value.

Screenshot 2020-05-24 at 00 36 43
Screenshot 2020-05-24 at 00 36 34

Would you please let me know how to fix this problem?

Cheers,
Pablo

@kwcantrell
Copy link
Collaborator

@pavlo888 would you be able to share your data?

Currently, sample based metadata coloring works by assigning colors to "unique branches." For example, say you have observations (or tips) a,b,c,d and samples s1,s2,s3, s4 with a metadata field Replicate where s1 has Replicate value 1, s2 has value 2, and s3/s4 have value 3. If 'a' seen in both s1 and s2 then 'a' is not considered unique because it is associated with values 1 and 2. However, say 'c' is seen in both s3 and s4 then it is considered unique because it is only associated with samples with value 3.

So, one possible cause could be that you do not have any "unique" observations for the Replicate field. Since Matrix only has one value, all observations would be considered unique which is why they are colored.

@pavlo888
Copy link
Author

Hi @kwcantrell

Thank you for your fast response. I could share my data, should I send it to your email?

Based on beta diversity, my samples are very similar but still have show a differential significant p-value.

Regarding the replicate field, I did not expect any unique features but on the rest of the metadata fields I do expect differences, albeit small.

Cheers,
Pablo

@kwcantrell
Copy link
Collaborator

No problem, you can send it to [email protected].

@ElDeveloper ElDeveloper changed the title Colors not updating Colors not updating (alert the user when there's no unique features) Jun 15, 2020
@kwcantrell kwcantrell linked a pull request Jun 20, 2020 that will close this issue
@ElDeveloper ElDeveloper added this to the Second Alpha Release milestone Jun 22, 2020
@kwcantrell kwcantrell reopened this Jun 22, 2020
@kwcantrell kwcantrell linked a pull request Jul 8, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants