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

set_root_below leaves extraneous internal nodes behind #45

Open
dbaurain opened this issue Apr 22, 2020 · 3 comments
Open

set_root_below leaves extraneous internal nodes behind #45

dbaurain opened this issue Apr 22, 2020 · 3 comments

Comments

@dbaurain
Copy link

Hi,

I think I found an issue with the method set_root_below in the last version of Bio::Phylo available on CPAN. I attach a minimal working example that illustrates my point: root-bug-bio-phylo.tar.gz.

Basically, when repeatedly re-rooting a tree, old roots remain available through both get_entities and get_internals, which prevents proper analysis of the rooted tree.

I did try to debug it myself for a couple of hours, but the whole point of using Bio::Phylo is to avoid worrying about the nitty-gritty details of its internal representations. :-)

Moreover, if you look at the rooted trees written on the disk, you will notice that some existing node names (and I guess attributes if any) are not transferred after rooting as one would expect when rerooting trees in a visual way.

Please get in touch if you need more information.

Best,
Denis

@rvosa
Copy link
Owner

rvosa commented Apr 22, 2020

Hi Denis,

I'll try to have a look at this. Rerooting is kind of tricky, it turns out, especially when carrying around the attached metadata. Hopefully I can fix this :)

Rutger

@dbaurain
Copy link
Author

dbaurain commented Apr 22, 2020 via email

@rvosa
Copy link
Owner

rvosa commented Apr 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants