-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
650 additions
and
151 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
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,99 @@ | ||
// nf-core modules test metabat2/metabat2 | ||
nextflow_process { | ||
|
||
name "Test Process METABAT2_METABAT2" | ||
script "../main.nf" | ||
process "METABAT2_METABAT2" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "metabat2" | ||
tag "metabat2/metabat2" | ||
tag "metabat2/jgisummarizebamcontigdepths" | ||
|
||
test("sarscov2 - genome - fasta") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: 'test', single_end: false], | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true), | ||
[] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - genome - fasta - depths") { | ||
|
||
setup { | ||
run("METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS") { | ||
script "../../jgisummarizebamcontigdepths/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: 'test', single_end: false], | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam.bai', checkIfExists: true), | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel | ||
.fromPath(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
.map { it -> [[ id:'test', single_end:false ], it] } | ||
.join(METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS.out.depth) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(file(process.out.membership[0][1]).name).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - genome - fasta - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[id: 'test', single_end: false], | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true), | ||
[] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
178 changes: 178 additions & 0 deletions
178
modules/nf-core/metabat2/metabat2/tests/main.nf.test.snap
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,178 @@ | ||
{ | ||
"sarscov2 - genome - fasta": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
|
||
], | ||
"1": [ | ||
|
||
], | ||
"2": [ | ||
|
||
], | ||
"3": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.tsv.gz:md5,f50e2528d24fcd9a200cae3421945f05" | ||
] | ||
], | ||
"4": [ | ||
|
||
], | ||
"5": [ | ||
"versions.yml:md5,872d18278c2ba7812c62a8bc6b2120eb" | ||
], | ||
"fasta": [ | ||
|
||
], | ||
"lowdepth": [ | ||
|
||
], | ||
"membership": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.tsv.gz:md5,f50e2528d24fcd9a200cae3421945f05" | ||
] | ||
], | ||
"tooshort": [ | ||
|
||
], | ||
"unbinned": [ | ||
|
||
], | ||
"versions": [ | ||
"versions.yml:md5,872d18278c2ba7812c62a8bc6b2120eb" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.2" | ||
}, | ||
"timestamp": "2024-12-11T12:28:01.970872008" | ||
}, | ||
"sarscov2 - genome - fasta - depths": { | ||
"content": [ | ||
"test.tsv.gz" | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.2" | ||
}, | ||
"timestamp": "2024-12-11T13:08:47.777561763" | ||
}, | ||
"sarscov2 - genome - fasta - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.tooShort.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.lowDepth.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"2": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.unbinned.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"3": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.tsv.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"4": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"5": [ | ||
"versions.yml:md5,872d18278c2ba7812c62a8bc6b2120eb" | ||
], | ||
"fasta": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"lowdepth": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.lowDepth.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"membership": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.tsv.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"tooshort": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.tooShort.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"unbinned": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.1.unbinned.fa.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,872d18278c2ba7812c62a8bc6b2120eb" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.2", | ||
"nextflow": "24.10.2" | ||
}, | ||
"timestamp": "2024-12-11T12:28:32.122007408" | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
...nf-core/metabat2/metabat2/nextflow.config → ...e/metabat2/metabat2/tests/nextflow.config
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
withName: METABAT2_METABAT2 { | ||
ext.args = '--minContig 1500 --minCV 0.1 --minCVSum 0.1 --minClsSize 10 --minS 2' | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ channels: | |
- conda-forge | ||
- bioconda | ||
dependencies: | ||
- bioconda::ngs-bits=2023_02 | ||
- bioconda::ngs-bits=2024_11 |
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
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
File renamed without changes.
Oops, something went wrong.