Skip to content

Instantly share code, notes, and snippets.

View EmilioGarciaMoran's full-sized avatar

Emilio García Morán EmilioGarciaMoran

View GitHub Profile
@EmilioGarciaMoran
EmilioGarciaMoran / efetch.sh
Created April 8, 2020 20:01
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