This is a test version of Biostars. For the public version, visit https://www.biostars.org.
maize ESTs NCBI

My question looks simple but I'm new to bioinformatics. I have a task of downloading maize ests which are around 20 lakhs. So, how can I download this ESTs in batches?

For example: 50000 ESTs in one file and next 40000 ESTs in one file like wise.

Thanks in advance

ncbi

1 answer

Go to http://www.ncbi.nlm.nih.gov/nucest?term=%22zea%20mays%22[Organism]

Select 'send to -> file -> fasta ' & download

Use awk to produce sequences with two lines (name+header) and split

awk '/^>/ {if(NR>1) printf("\n"); print;next;} {printf("%s",$0);}' your.fasta  |  split -l 100000 - prefix

Log in to answer this question.