Skip to content

Commit 0169133

Browse files
author
AstrobioMike
committed
swapping ncbi assembly summary download links because the ASSEMBLY_REPORTS directory seems to have disappeared from ncbi's ftp site
1 parent c1b5c12 commit 0169133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/GToTree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
GREEN='\033[0;32m'
55
RED='\033[0;31m'
66
NC='\033[0m'
7-
VERSION="v1.1.5"
7+
VERSION="v1.1.6"
88

99

1010
if [ "$1" == "--version" ] || [ "$1" == "-v" ]; then
@@ -645,7 +645,7 @@ if [ -n "$NCBI_acc_file" ]; then
645645

646646
if grep -q "^GCA" ${tmp_dir}/updated_sorted_input_ncbi_accs.tmp; then
647647
printf "\t\t ${GREEN}Downloading GenBank assembly summaries...${NC}\n\n"
648-
curl --connect-timeout 30 --retry 10 ftp://ftp.ncbi.nlm.nih.gov/genomes/ASSEMBLY_REPORTS/assembly_summary_genbank.txt -o ${tmp_dir}/ncbi_assembly_info.tmp || echo "failed" > capture_any_dl_errors.tmp
648+
curl --connect-timeout 30 --retry 10 ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/assembly_summary_genbank.txt -o ${tmp_dir}/ncbi_assembly_info.tmp || echo "failed" > capture_any_dl_errors.tmp
649649
fi
650650

651651
# making sure file downloaded with no errors
@@ -659,7 +659,7 @@ if [ -n "$NCBI_acc_file" ]; then
659659

660660
if grep -q "^GCF" ${tmp_dir}/updated_sorted_input_ncbi_accs.tmp; then
661661
printf "\n\t\t ${GREEN}Downloading RefSeq assembly summaries...${NC}\n\n"
662-
curl --connect-timeout 30 --retry 10 ftp://ftp.ncbi.nlm.nih.gov/genomes/ASSEMBLY_REPORTS/assembly_summary_refseq.txt -o ${tmp_dir}/ncbi_RS_assembly_info.tmp || echo "failed" > capture_any_dl_errors.tmp
662+
curl --connect-timeout 30 --retry 10 ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/assembly_summary_refseq.txt -o ${tmp_dir}/ncbi_RS_assembly_info.tmp || echo "failed" > capture_any_dl_errors.tmp
663663
cat ${tmp_dir}/ncbi_RS_assembly_info.tmp >> ${tmp_dir}/ncbi_assembly_info.tmp
664664
fi
665665

0 commit comments

Comments
 (0)