Skip to content

Instantly share code, notes, and snippets.

@audy
Created July 11, 2018 22:23
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 audy/e190c8852b3372999a74bb7c7cba9f54 to your computer and use it in GitHub Desktop.
Save audy/e190c8852b3372999a74bb7c7cba9f54 to your computer and use it in GitHub Desktop.
quick way to get all the fasta files for all bacterial genomes
#!/bin/bash
set -euo pipefail
rm -rf genbank/
rsync \
--archive \
--progress \
--recursive \
--prune-empty-dirs \
--copy-links \
--include='*/' \
--include='latest_assembly_versions/**annotated_assembly_genomic.fna.gz' \
--exclude='*' \
rsync://ftp.ncbi.nih.gov/genomes/genbank/bacteria/ \
genbank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment