-
Notifications
You must be signed in to change notification settings - Fork 6
have ability to add non-taxon node labels to newicks #205
Comments
I guess I should wait for @jar398 to give me the go ahead on this, since people have expressed that they want this, but none of the myriad docs explicitly discusses it. |
I think it's a good idea -- apologies for brevity / using handheld gizmo -- On Feb 16, 2016, at 20:41, "Joseph W. Brown" [email protected] I guess I should wait for @jar398 https://github.com/jar398 to give me — |
What methods does this affect? |
"subtree" and "induced_subtree" (only the latter is implemented at the moment; I can turn it off if you like). |
Old:
New:
|
Thanks for the "before" and "after" examples. I was unclear on the consequences of this change. Do I understand correctly that this isn't just a matter of labeling, but of including entirely new nodes (e.g. |
we could make it an option if there are worries about clutter or space or On Wed, Feb 17, 2016 at 4:51 PM, Joseph W. Brown [email protected]
|
@jimallman the trees are the exact same except for labelling. |
+1 for including them |
"nontaxon" nodes could be part of the query; a reason for them to be returned. |
thanks, my Newick-fu is lacking |
Here is subtree. Before:
After:
|
Deployed on test for testing. Let me know if you want me to revert things. |
It would be compatible in the sense of having a /v3 URL instead of a /v2 But I have no strong feelings. On Wed, Feb 17, 2016 at 5:02 PM, Joseph W. Brown [email protected]
|
Please formulate some definite feelings, strong or no; otherwise how can this possibly move forward (or not)? |
See examples here: OpenTreeOfLife/treemachine#205 (comment) (Update document 'tt_35' via OpenTree API)
Just FYI, I've imported both the old and new Newick strings from this comment above, on devtree: https://devtree.opentreeoflife.org/curator/study/edit/tt_35/?tab=trees |
Look above for the strongest uncontradicted opinion. (It's "+1 for A different, stronger, better supported opinion might come along later, Getting this right immediately is not as important as getting things like |
It is a big deal when I get lambasted for not doing exactly what is expected. The views expressed above are nowhere near the strong gatekeeper consensus you expressed during the hangout. I'll not be making any more decisions; tell me what you want, and I'll do it. Be explicit:
|
Now that we're no longer pressing to get a stable API by Saturday, I
suggest you not do anything until there has been proper review of a
proposed spec.
|
Where does the spec come from? Me? Does 1-4 above, together withe examples, suffice? If not, what? How is the spec reviewed? |
I will prepare a spec. It will become a github issue just like everything
else. If you want to prepare a spec too, you may, and we can compare them
when the time comes. But that is up to you.
Since you don't want to proceed without guidance, I have assigned this
issue to me.
|
Current behavior: The answer to #1 is yes. #2 is a good question. @kcranston what do you think, should we have a flag that controls whether to get v2-like behavior (i.e. suppress those long and mostly useless internal node labels)? Having seen some of these trees I think maybe we should. |
In response to @josephwb questions:
(edited to change default from true to false and clarification on what the flag does) |
I think the default would be false, since in v2 we didn't have all the mrca
labels.
I'm assuming the flag would only control the mrca labels, not the internal
ott labels.
This way, with the flag false, the v3 behavior would be the same as the v2
behavior: yes ott internal labels, no mrca internal node labels.
|
Is the goal to get this implemented for the current release? Seems low priority, as anyone getting trees is likely to throw out any internal node label. Plus, it feels awkward to have 2 label args:
I'm inclined to just return all the labels and let the user dispose of them if they wish. Getting rid of the |
There is code in the tree_of_life (v2) plugin in the v3 branch to throw
away the mrca labels.
label_format only applies to OTT nodes. include_all_node_labels only
applies to non-OTT nodes. So I see what you mean but technically they are
orthogonal.
|
include_all_node_labels is implemented (v3 branch on devapi) as @kcranston requested above. I'm not too happy about the flag name. There are 6 combinations of format + this flag, and they all make sense, but a couple of them are rather odd. |
@kcranston This issue just needs documentation and test cases and it will be done. Shall we (I) proceed? |
Do we want to expose this option in the webapps, perhaps as a checkbox? Or a drop-down, if there are more than two meaningful choices. |
I thought we would just leave it in the API. It's sort of an advanced
feature
|
Sounds good to me. |
Currently only taxon labels are applied to newick nodes.
e.g.
The text was updated successfully, but these errors were encountered: