forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kaiju version bump- nf-test -add stub (nf-core#4781)
* kaiju modules patch * add kaiju nf-test and stub * adding test & stub 4 kaiju2krona * undo raven change * kaiju2table & kaijumkfmi * Add taxonomic profiling as a keyword in meta.yml
- Loading branch information
1 parent
39f0e63
commit d898599
Showing
36 changed files
with
600 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::kaiju=1.8.2 | ||
- bioconda::kaiju=1.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
nextflow_process { | ||
|
||
name "Test Process KAIJU_KAIJU" | ||
script "../main.nf" | ||
process "KAIJU_KAIJU" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "kaiju" | ||
tag "kaiju/kaiju" | ||
tag "untar" | ||
|
||
test("sarscov2 - fastq - single-end") { | ||
|
||
setup { | ||
run ("UNTAR"){ | ||
script "../../../untar/main.nf" | ||
process { | ||
""" | ||
input[0] = [ [], file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/db/kaiju.tar.gz', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:true ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
] | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert path(process.out.results[0][1]).getText().contains("C\tERR5069949.2257580\t2697049") } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - fastq - paired-end") { | ||
|
||
setup { | ||
run ("UNTAR"){ | ||
script "../../../untar/main.nf" | ||
process { | ||
""" | ||
input[0] = [ [], file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/db/kaiju.tar.gz', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], | ||
[ file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)] | ||
] | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert path(process.out.results[0][1]).getText().contains("C\tERR5069949.2257580\t2697049") } | ||
) | ||
} | ||
} | ||
|
||
test("sarscov2 - fastq - stub") { | ||
|
||
options '-stub' | ||
|
||
setup { | ||
run ("UNTAR"){ | ||
script "../../../untar/main.nf" | ||
process { | ||
""" | ||
input[0] = [ [], file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/db/kaiju.tar.gz', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], | ||
[ file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true)] | ||
] | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(file(process.out.results[0][1]).name).match() } | ||
) | ||
} | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kaiju/kaiju: | ||
- "modules/nf-core/kaiju/kaiju/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::kaiju=1.8.2 | ||
- bioconda::kaiju=1.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
nextflow_process { | ||
|
||
name "Test Process KAIJU_KAIJU2KRONA" | ||
script "../main.nf" | ||
process "KAIJU_KAIJU2KRONA" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "kaiju" | ||
tag "kaiju/kaiju2krona" | ||
tag "kaiju/kaiju" | ||
tag "untar" | ||
|
||
test("sarscov2 - fastq - single-end") { | ||
|
||
|
||
setup { | ||
run ("UNTAR"){ | ||
script "../../../untar/main.nf" | ||
process { | ||
""" | ||
input[0] = [ [], file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/db/kaiju.tar.gz', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
|
||
run("KAIJU_KAIJU") { | ||
script "../../kaiju/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:true ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
] | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = KAIJU_KAIJU.out.results | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - fastq - stub") { | ||
|
||
options "-stub" | ||
|
||
setup { | ||
run ("UNTAR"){ | ||
script "../../../untar/main.nf" | ||
process { | ||
""" | ||
input[0] = [ [], file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/db/kaiju.tar.gz', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
|
||
run("KAIJU_KAIJU") { | ||
script "../../kaiju/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:true ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
] | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = KAIJU_KAIJU.out.results | ||
input[1] = UNTAR.out.untar.map{ it[1] } | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(file(process.out.txt[0][1]).name).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kaiju/kaiju2krona: | ||
- "modules/nf-core/kaiju/kaiju2krona/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ channels: | |
- bioconda | ||
- defaults | ||
dependencies: | ||
- bioconda::kaiju=1.8.2 | ||
- bioconda::kaiju=1.10.0 |
Oops, something went wrong.