[Biopython-dev] [Biopython - Bug #3401] (New) is_terminal bug in newick trees
redmine at redmine.open-bio.org
redmine at redmine.open-bio.org
Mon Dec 17 13:49:33 UTC 2012
Issue #3401 has been reported by Aleksey Kladov.
----------------------------------------
Bug #3401: is_terminal bug in newick trees
https://redmine.open-bio.org/issues/3401
Author: Aleksey Kladov
Status: New
Priority: Normal
Assignee:
Category:
Target version:
URL:
Consider this weird Newick tree
(((B,C),D))A;
Here 'A' is both a root node and a terminal node(since it has only one child: ((B,C),D);). However, is_terminal for 'A' is False:
<pre>
from Bio import Phylo
import cStringIO
bad_tree = '(((B,C),D))A'
t = Phylo.read(cStringIO.StringIO(bad_tree), 'newick')
for c in t.find_clades(terminal=True):
print c,
</pre>
Gives @B C D@
----------------------------------------
You have received this notification because this email was added to the New Issue Alert plugin
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here and login: http://redmine.open-bio.org
More information about the Biopython-dev
mailing list