-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding input value-channel for controlling spring-decompress cmd and …
…output (#5850) * Enable single fastq.gz-output from spring/decompress by setting meta.single_end or meta.one_strand * Controlling output with value-channel write_one_fastq_gz * Update modules/nf-core/spring/decompress/meta.yml Co-authored-by: Maxime U Garcia <[email protected]> * nf-test for spring/decompress * Trying to please linter * Trying to please linter --------- Co-authored-by: Simon Pearce <[email protected]> Co-authored-by: Maxime U Garcia <[email protected]>
- Loading branch information
1 parent
db35d26
commit 0a92fa8
Showing
7 changed files
with
172 additions
and
6 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
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,78 @@ | ||
nextflow_process { | ||
|
||
name "Test Process SPRING_DECOMPRESS" | ||
tag "modules_nfcore" | ||
tag "modules" | ||
tag "spring" | ||
tag "spring/decompress" | ||
script "../main.nf" | ||
process "SPRING_DECOMPRESS" | ||
|
||
test("Write-One-File") { | ||
|
||
setup { | ||
run("SPRING_COMPRESS") { | ||
script "../../compress/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], // meta map | ||
file(params.modules_testdata_base_path + '/genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true), | ||
[] | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = SPRING_COMPRESS.out.spring | ||
input[1] = true // write_one_fastq_gz | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
test("Write-Two-Files") { | ||
|
||
setup { | ||
run("SPRING_COMPRESS") { | ||
script "../../compress/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test2' ], // meta map | ||
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), | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = SPRING_COMPRESS.out.spring | ||
input[1] = false // write_one_fastq_gz | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
} |
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,74 @@ | ||
{ | ||
"Write-Two-Files": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test2" | ||
}, | ||
[ | ||
"test2_R1.fastq.gz:md5,4161df271f9bfcd25d5845a1e220dbec", | ||
"test2_R2.fastq.gz:md5,2ebae722295ea66d84075a3b042e2b42" | ||
] | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,4711df5941f1464e3693d24dd29c705b" | ||
], | ||
"fastq": [ | ||
[ | ||
{ | ||
"id": "test2" | ||
}, | ||
[ | ||
"test2_R1.fastq.gz:md5,4161df271f9bfcd25d5845a1e220dbec", | ||
"test2_R2.fastq.gz:md5,2ebae722295ea66d84075a3b042e2b42" | ||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,4711df5941f1464e3693d24dd29c705b" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.2" | ||
}, | ||
"timestamp": "2024-06-21T13:41:46.090761471" | ||
}, | ||
"Write-One-File": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.fastq.gz:md5,4161df271f9bfcd25d5845a1e220dbec" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,4711df5941f1464e3693d24dd29c705b" | ||
], | ||
"fastq": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.fastq.gz:md5,4161df271f9bfcd25d5845a1e220dbec" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,4711df5941f1464e3693d24dd29c705b" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.2" | ||
}, | ||
"timestamp": "2024-06-21T13:02:07.466039653" | ||
} | ||
} |
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,5 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
} |
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,3 @@ | ||
spring/decompress: | ||
- modules/nf-core/spring/compress/** | ||
- modules/nf-core/spring/decompress/** |
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