Open josephwb opened 9 years ago
Yes. We are advertising mapped-to-taxonomy as a key value added of the system. I guess it could be an option, but that makes for UI clutter.
If they want the original labels they're in the nexus file. But on the other hand, what should the labels be in the Newick file? We'll have to put something there.
I think I agree with @josephwb here. The labels in the newick file should be the mapped labels. If you are downloading the tree from opentree, that tree should have the curated data (where applicable, depending on file type). We do keep the original uploaded / pasted file, which would have the original labels. Or label could be an option when downloading the newick.
Sorry, I wasn't clear. For tips that don't map to OTT, what should the labels be in the Newick file?
I need to document this better but there is an optional argument tip_label
to the GET in phylesystem. The 3 currently supported values for that are: 'ot:originalLabel', 'ot:ottId', 'ot:ottTaxonName' (the values are not case sensitive).
So, you can contrast:
https://devapi.opentreeoflife.org/phylesystem/v1/study/pg_2510/tree/tree5405?format=newick&tip_label=ot:originalLabel
https://devapi.opentreeoflife.org/phylesystem/v1/study/pg_2510/tree/tree5405?format=newick&tip_label=ot:ottID
https://devapi.opentreeoflife.org/phylesystem/v1/study/pg_2510/tree/tree5405?format=newick&tip_label=ot:ottTaxonName
and in answer to @jar398 's point: the mapped tips show up as things like: '_unlabeled tip #1','_unlabeled tip #2', etc. I'm happy to change that behavior if anyone has a better suggestion.
You mean the unmapped tips I presume. Sorry to quibble - it's what I do - but 'unlabeled tip #1' is wrong in two ways:
Maybe we could use a label like 'original label - Rana pipiens' or 'not mapped to OTT - Rana pipiens' ? Just a thought.
It would also be nice to see the OTT IDs tree browser - perhaps that belongs in a separate issue...
A study may have all taxa mapped to the taxonomy, but the newick from the curator has tip labels from the original file.
For example, the newick for study ot_211 is:
I think people are only going to want mapped labels, right?