Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Created June 15, 2012 14:37
Show Gist options
  • Save fjossinet/2936778 to your computer and use it in GitHub Desktop.
Save fjossinet/2936778 to your computer and use it in GitHub Desktop.
How to download protein or nucleotide sequences from a list of gene ids?
cat gene_ids.txt | xargs -I % wget -qO %.fasta "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=%&rettype=fasta"
17986270
4503385
118214
76673410
73951844
55666937
51458701
4507041
6753680
30794286
6978777
32483397
118206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment