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.
Convert bclconvert and bcl2fastq modules to nf-test (nf-core#4229)
* Convert bcl2fastq to nf-test * Convert bclconvert tests to nf-test * Sort snapshot to get a consistent file ordering
- Loading branch information
Showing
9 changed files
with
372 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
nextflow_process { | ||
|
||
name "Test Process BCL2FASTQ" | ||
script "modules/nf-core/bcl2fastq/main.nf" | ||
process "BCL2FASTQ" | ||
config "./nextflow.config" | ||
tag "bcl2fastq" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
|
||
test("homo sapiens illumina [bcl]") { | ||
when { | ||
process { | ||
//TODO use new test dataset when available, see https://github.com/nf-core/test-datasets/issues/996 | ||
""" | ||
input[0] = [ | ||
[ id: 'test', lane:1 ], | ||
file(params.test_data['homo_sapiens']['illumina']['test_flowcell_samplesheet'], checkIfExists: true), | ||
file(params.test_data['homo_sapiens']['illumina']['test_flowcell'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).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,6 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
ext.args = "--tiles s_1_1101" | ||
} |
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 @@ | ||
bcl2fastq: | ||
- modules/nf-core/bcl2fastq/** |
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,41 @@ | ||
nextflow_process { | ||
|
||
name "Test Process BCLCONVERT" | ||
script "../main.nf" | ||
process "BCLCONVERT" | ||
config "./nextflow.config" | ||
tag "bclconvert" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
|
||
test("homo sapiens illumina [bcl]") { | ||
when { | ||
process { | ||
//TODO use new test dataset when available, see https://github.com/nf-core/test-datasets/issues/996 | ||
""" | ||
input[0] = [ | ||
[ id: 'test', lane:1 ], | ||
file(params.test_data['homo_sapiens']['illumina']['test_flowcell_samplesheet'], checkIfExists: true), | ||
file(params.test_data['homo_sapiens']['illumina']['test_flowcell'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out.reports, | ||
process.out.versions, | ||
process.out.fastq, | ||
process.out.undetermined, | ||
file(process.out.logs.get(0).get(1)).list().sort(), | ||
process.out.interop.get(0).get(1).findAll { file(it).name != "IndexMetricsOut.bin" }, | ||
).match() | ||
}, | ||
{ assert file(process.out.interop.get(0).get(1).find { file(it).name == "IndexMetricsOut.bin" }).exists() } | ||
) | ||
} | ||
} | ||
} |
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,10 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
ext.args = {[ | ||
meta.lane ? "--bcl-only-lane ${meta.lane}" : "", | ||
"--force", | ||
"--first-tile-only true" | ||
].join(" ").trim()} | ||
} |
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 @@ | ||
bclconvert: | ||
- modules/nf-core/bclconvert/** |
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