Skip to content

Commit

Permalink
logic error and wget fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
replikation committed Oct 6, 2021
1 parent 90f5c2e commit 5524460
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/get_fast5_test_data.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process get_fast5 {
path("fast5")
script:
"""
wget https://osf.io/vxd7f/download -O SARSCoV2.tar.gz
wget --no-check-certificate https://osf.io/vxd7f/download -O SARSCoV2.tar.gz
tar xzf SARSCoV2.tar.gz
"""
}
2 changes: 1 addition & 1 deletion modules/get_fasta_test_data.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ process get_fasta {
path("SARSCoV2.fasta")
script:
"""
wget https://osf.io/87bc9/download -O SARSCoV2.fasta
wget --no-check-certificate https://osf.io/87bc9/download -O SARSCoV2.fasta
"""
}
2 changes: 1 addition & 1 deletion modules/get_fastq_test_data.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ process get_nanopore_fastq {
path("SARSCoV2.fastq.gz")
script:
"""
wget https://osf.io/kf54a/download -O SARSCoV2.fastq.gz
wget --no-check-certificate https://osf.io/kf54a/download -O SARSCoV2.fastq.gz
"""
}
6 changes: 4 additions & 2 deletions workflows/process/download_database_kraken2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ process download_database_kraken2 {
output:
path("kraken.tar.gz")
script:
if (task.attempt = 1)
if (task.attempt.toInteger() == 1)
"""
echo ${task.attempt}
wget --no-check-certificate https://zenodo.org/record/4534746/files/GRCh38.p13_SC2_2021-02-08.tar.gz -O kraken.tar.gz
"""
if (task.attempt > 1)
else if (task.attempt.toInteger() > 1)
"""
echo ${task.attempt}
wget --no-check-certificate https://osf.io/eprfq/download -O kraken.tar.gz
"""
stub:
Expand Down

0 comments on commit 5524460

Please sign in to comment.