Comments (5)
I was wondering why the "Unknown" value wasn't automatically ignored by Auspice and found this was done on purpose!
nextclade/packages_rs/nextclade/src/tree/tree.rs
Lines 21 to 23 in ca54ba3
from nextclade.
Thanks Jover!
Since the beginning, we've been trying to carefully ignore the country and other values, because Nextclade inputs and, therefore, newly attached tree nodes simply don't have this information.
My understanding is that in our own datasets we don't have these fields, and so these colorings do not even appear in the dropdown.
I had to add the handling of unknown values long time ago for the reasons I don't remember clearly, but I found this Slack thread:
https://bedfordlab.slack.com/archives/C7SDVPBLZ/p1596559922285700?thread_ts=1596488014.283400&cid=C7SDVPBLZ
But maybe it needs to be revisited.
You know more about this things. What can you recommend?
from nextclade.
Ah, the grey scale is the intended behavior in Auspice for values that are not defined in the color scale.
Maybe the easiest thing to do here would be for Nextclade to use "Unknown"
(without the space at the end) so that the new tree nodes just don't have a country value? This way the new nodes will automatically get colored as grey for these colorings and you can remove the injection of the color scale.
from nextclade.
We have never been very careful about metadata other than clades on these trees. But many datasets 'inherit' these metadata attributes from the workflows they are based on.
I don't think I fully understand the problem yet though. If I look at these trees in auspice (outside of nextclade) they get assigned the default rainbow colors. Is it that only after adding the fake Unknown_
auspice then generates the grey values?
I don't remember all the reasons why we wanted to avoid auspice interpreting this as Unknown
. But I guess we can remove the space and see whether we get any unwanted behavior.
from nextclade.
Is it that only after adding the fake Unknown_ auspice then generates the grey values?
Yes, Nextclade injects a single color scale for the added Unknown_
value and Auspice will "create shades of grey for values in the tree which weren't defined in the provided scale".
Using the Influenza H1N1pdm HA dataset as an example, the "Region" color-by looks fine because tree.json includes a scale for region. However, the "Country" color-by is grey scale because the tree.json does not define a scale for country.
from nextclade.
Related Issues (20)
- Incorporation of enterovirus dataset into nextalde docker container HOT 1
- Include aligned sequences and translations in ndjson
- ENH(nextalign cli): show default values in --help usage statement HOT 4
- Maximum Sequence Limit? HOT 2
- How to decide if the reversionSubstitutions are valid variants or not and whether to keep them? HOT 2
- Direct Auspice SVG Download
- ENH: enlarge Visualization when more nucleotides/Codons even if mutations not fall in striclty adjacent codons but close enough to need a whole view. HOT 2
- Updating certain parts of the JSON file output from Map to Array HOT 2
- linux-musl artefact gets slower rather than faster when parallelizing in contrast to gnu HOT 5
- Parsing PCR primers HOT 1
- how many SARS-COV-2 sequences can nextclade handle in a MSA file? HOT 8
- Is there any example for handling HIV data? HOT 2
- Web crash: The target <seqName> could not be identified in the dom HOT 2
- Show "browser not supported HOT 1
- Show "browser not supported" modal only once per session HOT 3
- if the qc.overallStatus of my sequences are mediocre, can we keep them for next step analysis? HOT 5
- web-based nextclade issue when using another reference HOT 8
- web(minor): when customizing dataset files, it always says "pasted sequences" even if the field is for tree HOT 2
- I upload 1490 sequences to nextclade, and upload to auspice.us, why it shows me 4255 sequences? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextclade.