Created
July 11, 2018 22:23
-
-
Save audy/e190c8852b3372999a74bb7c7cba9f54 to your computer and use it in GitHub Desktop.
quick way to get all the fasta files for all bacterial genomes
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 | |
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