Skip to content

Instantly share code, notes, and snippets.

@EmilioGarciaMoran
Created April 8, 2020 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmilioGarciaMoran/b73fa286c48fb536cff33136295c86bb to your computer and use it in GitHub Desktop.
Save EmilioGarciaMoran/b73fa286c48fb536cff33136295c86bb to your computer and use it in GitHub Desktop.
bash oneliner to fetch genomes in fasta format from Genbank
#!/bin/bash
epost -input corona/GenBankGenomes.lst |efetch -db nucleotide -format fasta>corona/GenBankGenomes.fasta
#GenBankGenomes.lst is a text file with the accession numbers for every genome (one per line). It is
#easy to build from Entrez-NCBI web interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment