You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered this while testing the common_ancestor function (thanks for that, btw). If I do something like this (where names is a list of sample names):
lfs = [x for x in getleaves(tre) if x.name in names]
print(lfs)
I get this:
[LinkNode Saxicola_tectes_REUNION_EU190909, a tip of the tree with an incoming connection (branch 45).
, LinkNode Saxicola_tectes_REUNION_EU190910, a tip of the tree with an incoming connection (branch 46).
, LinkNode Saxicola_tectes_REUNION_EU190911, a tip of the tree with an incoming connection (branch 47).
, LinkNode Saxicola_tectes_REUNION_EU190912, a tip of the tree with an incoming connection (branch 48).
]
That really is weird. I can't imagine how that's something the parser thinks is sensible. I'm going to have to play around with the parser a bit and see what I can do with it, but this is peak teaching season for me at the moment, so it may be a few weeks I'm afraid...
@isaacovercast - sorry it has been so long, but I've been working on the parser recently and I can't see why the changes I've made so far would have fixed this, but I can't reproduce it - could you provide me with the file you found the problem with?
I discovered this while testing the common_ancestor function (thanks for that, btw). If I do something like this (where
names
is a list of sample names):I get this:
However, the sample names in the nexus file are:
so somewhere that trailing underscore is getting stripped. Not sure if this is a feature or a bug, but thought it worth reporting.
The text was updated successfully, but these errors were encountered: