Skip to content

Instantly share code, notes, and snippets.

@alexcritschristoph
Created July 29, 2024 21:00
Show Gist options
  • Save alexcritschristoph/0ee231e1c38fa87ce389aaca31e25ec7 to your computer and use it in GitHub Desktop.
Save alexcritschristoph/0ee231e1c38fa87ce389aaca31e25ec7 to your computer and use it in GitHub Desktop.
download_ncbi.sh
# 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