Mercurial > repos > dereeper > pangenome_explorer
comparison COG/bac-genomics-scripts/ncbi_ftp_download/ncbi_ftp_download.sh @ 3:e42d30da7a74 draft
Uploaded
author | dereeper |
---|---|
date | Thu, 30 May 2024 11:52:25 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:97e4e3e818b6 | 3:e42d30da7a74 |
---|---|
1 #!/bin/bash | |
2 # Download/update RefSeq complete genomes | |
3 echo "#### Updating RefSeq complete $1 genomes" | |
4 wget -cNrv -t 45 -A *.gbk,*.fna "ftp://ftp.ncbi.nlm.nih.gov/genomes/Bacteria/$1*" -P . | |
5 # Download/update RefSeq draft genomes | |
6 echo "#### Updating RefSeq draft $1 genomes" | |
7 wget -cNrv -t 45 -A *.gbk.tgz,*.fna.tgz "ftp://ftp.ncbi.nlm.nih.gov/genomes/Bacteria_DRAFT/$1*" -P . | |
8 # Download/update GenBank complete genomes | |
9 echo "#### Updating GenBank complete $1 genomes" | |
10 wget -cNrv -t 45 -A *.gbk,*.fna "ftp://ftp.ncbi.nlm.nih.gov/genbank/genomes/Bacteria/$1*" -P . | |
11 # Download/update GenBank draft genomes | |
12 echo "#### Updating GenBank draft $1 genomes" | |
13 wget -cNrv -t 45 -A *.gbk.tgz,*.fna.tgz "ftp://ftp.ncbi.nlm.nih.gov/genbank/genomes/Bacteria_DRAFT/$1*" -P . | |
14 # Run script 'ncbi_concat_unpack.pl' to fill the result folders './refseq' and './genbank' | |
15 echo "#### Copying files to result folder './refseq'" | |
16 perl ncbi_ftp_concat_unpack.pl refseq y | |
17 echo "#### Copying files to result folder './genbank'" | |
18 perl ncbi_ftp_concat_unpack.pl genbank y |