Hi, I have been using the lineages.csv file that you've generated as a lookup table to pull the lineages of the list of Taxa IDs I have. Some TaxaIDs dont return lineages when I try to extract them using the script I wrote. But when I put the same list of IDs on the NCBI taxonomy website they are mapped to another TaxaID called the primary taxa. So I was wondering if the lineages.csv is not updated. I've tried generating new lineages.csv but the software gives out this error:
Traceback (most recent call last):
File "ncbitax2lin.py", line 224, in <module>
main()
File "ncbitax2lin.py", line 192, in main
lineages_df.sort_values('tax_id', inplace=True)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 2083, in __getattr__
(type(self).__name__, name))
AttributeError: 'DataFrame' object has no attribute 'sort_values'
Makefile:2: recipe for target 'ncbitax2lin' failed
make: *** [ncbitax2lin] Error 1
I'm not that familiar with pandas and a beginner in python. I actually want to get the lineage for the list of TaxaIDs I have. Any suggestions will be appreciated. Thanks.
That's very helpful! but can I get multiple lineage at same time? Because I have 3000 organism to probe it's impossible to run this command one by one!
loop: http://www.linuxquestions.org/questions/programming-9/bash-read-entire-file-line-in-for-loop-240016/