Created
April 8, 2020 20:01
-
-
Save EmilioGarciaMoran/b73fa286c48fb536cff33136295c86bb to your computer and use it in GitHub Desktop.
bash oneliner to fetch genomes in fasta format from Genbank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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