Created
July 29, 2024 21:00
-
-
Save alexcritschristoph/0ee231e1c38fa87ce389aaca31e25ec7 to your computer and use it in GitHub Desktop.
download_ncbi.sh
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
# no fuss script todownload an ncbi genome in ~1 second: | |
# usage download_ncbi.sh GCA_000330525.1 | |
genome_accession=$1 | |
datasets download genome accession ${genome_accession} --include gbff | |
unzip ncbi_dataset.zip | |
mv ncbi_dataset/data/${genome_accession}/genomic.gbff ${genome_accession}.gbff | |
rm -rf ./ncbi_dataset* | |
rm README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment