Skip to content

Commit

Permalink
move setup blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
famosab committed Jan 21, 2025
1 parent 7087914 commit b5e32ec
Showing 1 changed file with 26 additions and 29 deletions.
55 changes: 26 additions & 29 deletions modules/nf-core/kma/kma/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ nextflow_process {


setup {
run("KMA_INDEX") {

run("KMA_INDEX", alias: "KMA_INDEX_SPARSE") {
script "../../index/main.nf"

params {
Expand All @@ -29,8 +30,25 @@ nextflow_process {
"""
}
}
}

run("KMA_INDEX", alias: "KMA_INDEX_ALL") {
script "../../index/main.nf"

params {
module_args = ''
}

process {
"""
input[0] = [
[ id: 'MT192765.1', single_end:false ],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)
]
"""
}
}

}

test("sarscov2 - fasta - sparse") {

Expand All @@ -49,7 +67,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
]
]
input[1] = KMA_INDEX.out.index
input[1] = KMA_INDEX_SPARSE.out.index
input[2] = false
input[3] = false
"""
Expand Down Expand Up @@ -85,7 +103,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
]
]
input[1] = KMA_INDEX.out.index
input[1] = KMA_INDEX_SPARSE.out.index
input[2] = false
input[3] = false
"""
Expand All @@ -101,27 +119,6 @@ nextflow_process {

}


setup {
run("KMA_INDEX") {
script "../../index/main.nf"

params {
module_args = ''
}

process {
"""
input[0] = [
[ id: 'MT192765.1', single_end:false ],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)
]
"""
}
}
}


test("sarscov2 - fasta") {

when {
Expand All @@ -139,7 +136,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
]
]
input[1] = KMA_INDEX.out.index
input[1] = KMA_INDEX_ALL.out.index
input[2] = false
input[3] = false
"""
Expand Down Expand Up @@ -175,7 +172,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
]
]
input[1] = KMA_INDEX.out.index
input[1] = KMA_INDEX_ALL.out.index
input[2] = false
input[3] = false
"""
Expand Down Expand Up @@ -209,7 +206,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
]
]
input[1] = KMA_INDEX.out.index
input[1] = KMA_INDEX_ALL.out.index
input[2] = false
input[3] = true
"""
Expand Down Expand Up @@ -245,7 +242,7 @@ nextflow_process {
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)
]
]
input[1] = KMA_INDEX.out.index
input[1] = KMA_INDEX_ALL.out.index
input[2] = false
input[3] = true
"""
Expand Down

0 comments on commit b5e32ec

Please sign in to comment.