Skip to content

Commit

Permalink
use https on ncbigenomedownload
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Mar 24, 2024
1 parent 6911e21 commit e700720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/nf-core/ncbigenomedownload/main.nf
Expand Up @@ -48,18 +48,18 @@ process NCBIGENOMEDOWNLOAD {
if [ "${meta.limit}" != "null" ]; then
ncbi-genome-download $opts -g "${meta.species}" --dry-run | grep -v "Considering" > accession-list.txt
shuf accession-list.txt | head -n ${meta.limit} | cut -f 1,1 > accession-subset.txt
ncbi-genome-download $opts -A accession-subset.txt
ncbi-genome-download $opts -u "https://ftp.ncbi.nlm.nih.gov/genomes" -A accession-subset.txt
else
ncbi-genome-download $opts -g "${meta.species}"
fi
fi
if [ "${meta.accession}" != "null" ]; then
ncbi-genome-download $opts -A ${meta.accession}
ncbi-genome-download $opts -u "https://ftp.ncbi.nlm.nih.gov/genomes" -A ${meta.accession}
fi
if [ "${meta.has_accessions}" == "true" ]; then
ncbi-genome-download $opts -A ${accessions}
ncbi-genome-download $opts -u "https://ftp.ncbi.nlm.nih.gov/genomes" -A ${accessions}
fi
cat <<-END_VERSIONS > versions.yml
Expand Down

0 comments on commit e700720

Please sign in to comment.