ete
ete copied to clipboard
Suggestion for tutorial section on get_descendant_taxa()
Hi, Not really an issue or a bug, just a small suggestion. I ran into a slightly confusing situation while trying to get all taxonomy ids for mammals.
mammals = ncbi.get_descendant_taxa(40674, collapse_subspecies=False)
Retrieved like this, Homo sapiens (9606) is not included. I guess this is because 9606 is an internal node in ncbi's taxonomy. Thus,
mammals = ncbi.get_descendant_taxa(40674, collapse_subspecies=False, intermediate_nodes=True)`
includes it. The tutorial section on getting descendant taxa does not have an explanation of intermediate_nodes
at the moment, which might be worthwhile for situations like this. Or cases like the one in this related issue: #369
I think intermediate_nodes
should set to True
by default. That's the real meaning of "descendant".