ncbi / datasets

NCBI Datasets is a new resource that lets you easily gather data from across NCBI databases.
https://www.ncbi.nlm.nih.gov/datasets
Other
355 stars 39 forks source link

datasets not working with for loop #395

Closed pedres closed 1 month ago

pedres commented 1 month ago

Hi, I am trying to download a set of several bacterial genomes using a for loop with datasets installed with conda (16.17.1)

for z in cat taxIDs.txt ; do datasets download genome taxon $z --filename "$z" --reference; done The error for each genome is Error: 2749991 appears to be an invalid tax name. This could be due to unexpected special characters

However, running a command for each genome works perfectly datasets download genome taxon 2749991 --filename 2749991 --reference

Thanks a lot for your help, taxIDs.txt

Manuel

pedres commented 1 month ago

Solved. I prepared the taxIDs.txt in windows, Preparing it in linux solved the problem Apologies Manuel

pedres commented 1 month ago

Solved. I prepared the taxIDs.txt in windows, Preparing it in linux solved the problem Apologies Manuel