This is perfect! Thank you'!
Cannot get efetch to download genome - what is wrong?
Hi all,
I am trying to download a genome assembly (Bioproject: PRJEB20069, assembly: GCA_900241095.1) in FASTA format using the Entrez utilities from the command line, but it continues to fail:
efetch -db=nuccore -format=fasta -id=GCA_900241095.1 > output.fa
I have tried varies things (using the BioProject number, getting information using esearch etc.) but nothing seems to work.
Can any of you see what I am doing wrong?
Thank you!
Best wishes, Birgitte
• 5,658 views
•
link
3 answers
You may want to try this too
esearch -db bioproject -query "PRJEB20069" \
| elink -target assembly \
| efetch -format docsum \
| xtract -pattern DocumentSummary -element FtpPath_GenBank \
| xargs -n 1 sh -c 'wget "$0"/*fna.gz'
• 0 views
•
link
• 0 views
•
link
That's some serious ncbi-fu stuff. I've just break it into several lines just to make it more readable.
• 0 views
•
link
You are right! Thanks!
I think I found a way to download it using:
esearch -db bioproject -query "PRJEB20069" | elink -target nuccore| efetch -format fasta > output.fa
• 0 views
•
link
Log in to answer this question.
There is no such accession in nuccore: