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.
Migration test cutadapt (nf-core#4072)
* migrate cutadapt test to modules * add cutadapt pytest * fix typo * fix minor typo * remove cutadapt pytest * remove modules.yml * add tags.yml * fixed paired reads test * updated snap * using filtering for output gz * Update single-read test name Co-authored-by: Sateesh_Peri <[email protected]> * Update paired-reads test name Co-authored-by: Sateesh_Peri <[email protected]> --------- Co-authored-by: Sateesh_Peri <[email protected]>
- Loading branch information
1 parent
485558b
commit 07881e4
Showing
5 changed files
with
100 additions
and
4 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,69 @@ | ||
nextflow_process { | ||
|
||
name "Test Process CUTADAPT" | ||
script "../main.nf" | ||
process "CUTADAPT" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "cutadapt" | ||
|
||
test("sarscov2 Illumina single end [fastq]") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
} | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id: 'test', single_end:true ], | ||
[ | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert process.out.reads != null }, | ||
{ assert process.out.reads.get(0).get(1) ==~ ".*.trim.fastq.gz" }, | ||
{ assert snapshot(process.out.versions).match("versions") }, | ||
{ assert snapshot(path(process.out.reads.get(0).get(1)).linesGzip[0]).match() } | ||
) | ||
} | ||
} | ||
|
||
test("sarscov2 Illumina paired-end [fastq]") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
} | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id: 'test', single_end:false ], | ||
[ | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert process.out.reads != null }, | ||
{ assert process.out.reads.get(0).get(1).get(0) ==~ ".*.1.trim.fastq.gz" }, | ||
{ assert process.out.reads.get(0).get(1).get(1) ==~ ".*.2.trim.fastq.gz" }, | ||
{ assert snapshot(path(process.out.reads.get(0).get(1).get(1)).linesGzip[0]).match() }, | ||
{ assert snapshot(process.out.versions).match("versions") } | ||
) | ||
} | ||
} | ||
} |
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,7 @@ | ||
process { | ||
|
||
withName: CUTADAPT { | ||
ext.args = '-q 25' | ||
} | ||
|
||
} |
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 @@ | ||
cutadapt: | ||
- modules/nf-core/cutadapt/** |
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