Instantly share code, notes, and snippets.

Embed
What would you like to do?
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