Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Created June 15, 2012 09:02
Show Gist options
  • Save fjossinet/2935517 to your computer and use it in GitHub Desktop.
Save fjossinet/2935517 to your computer and use it in GitHub Desktop.
How to download genomic scaffolds?
#!/bin/bash
echo "Start..."
rm -f ~/results.txt
mkdir -p ~/Data/nematostella_vectensis
cd ~/Data/nematostella_vectensis
root_Id="ABAV0"
for ((i=1000001;i<=1059149;i+=1))
do
echo "Download of $root_Id$i"
wget -qO $root_Id$i.fasta "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=$root_Id$i&rettype=fasta"
done
echo "End..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment