arendsee / phylostratr

An R framework for phylostratigraphy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"ncbi_tree" function error: Error in x$id : $ operator is invalid for atomic vectors

minzooey opened this issue · comments

I simply wanted to draw a phylogenetic tree using NCBI taxid.
However, the following error continues to occur.

taxid = spec$taxid
tree = ncbi_tree(taxid)
Error in x$id : $ operator is invalid for atomic vectors

To add to this issue, this is a problem when one tries to retrieve a tree for more than 100 species. Up until 100, it works fine.

Update: Upon further troubleshooting, I discovered that I used an older version of taxid for one of the species in the query, that's why this species was generating this error.