Closed zachary-foster closed 10 years ago
thanks @zachary-foster ! I'll take a look and get back to ya in 2 shakes
Look's good @zachary-foster !
@zachary-foster looks good, i tested out locally, and all worked well. Can you send a PR?
Thanks. PR sent.
I needed a function to get the children of a given taxon (referenced by taxid or name) from the NCBI taxonomy database. I noticed that there are functions that do this for COL and ITIS, but I did not find one for NCBI. I made my own function to do this, inspired by the techniques and style implemented in taxize. It seems to work fine although I have not tested it extensively yet. It accepts a character vector of either taxid or taxon names. When searching by name, different taxa with the same name (e.g. Satyrium) can be differentiated by supplying a character vector of ancestor names (See examples in roxygen comments). Are you interested in having this function integrated into taxize? If so, I can do some more fine tunning, integrate in into taxize, and submit a pull request. What I have so far is pasted below. The first function relies on the second.