This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Biopython get_terminals() doesn't get all terminals

Hello,

I downloaded the bac120.tree from GTDB. It has 136646 terminals. When I run

tree = Phylo.read("bac120.tree", "newick")

tips = tree.get_terminals()

I get a list of size one, which is one of the 136646 terminals. I was hoping to get a list of all terminals.

What am I doing wrong?

Thanks and best regards,

biopython tree get_terminals gtdb

1 answer

Sorry, my bad. The tree wasn't imported correctly. It works now.

Log in to answer this question.