forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fastq_fastqc_umitools_fastp nf-test snapshot (nf-core#4417)
- Loading branch information
1 parent
8c0c20d
commit 1eb7ad8
Showing
7 changed files
with
143 additions
and
76 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
subworkflows/nf-core/fastq_fastqc_umitools_fastp/tests/main.nf.test
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,60 @@ | ||
nextflow_workflow { | ||
|
||
name "Test Workflow FASTQ_FASTQC_UMITOOLS_FASTP" | ||
script "../main.nf" | ||
workflow "FASTQ_FASTQC_UMITOOLS_FASTP" | ||
tag "subworkflows" | ||
tag "subworkflows_nfcore" | ||
tag "subworkflows/fastq_fastqc_umitools_fastp" | ||
tag "fastq_fastqc_umitools_fastp" | ||
tag "fastqc" | ||
tag "umitools/extract" | ||
tag "fastp" | ||
|
||
|
||
test("sarscov2 paired-end [fastq]") { | ||
|
||
when { | ||
workflow { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = false // skip_fastqc | ||
input[2] = false // with_umi | ||
input[3] = false // skip_umi_extract | ||
input[4] = 1 // umi_discard_read | ||
input[5] = false // skip_trimming | ||
input[6] = [] // adapter_fasta | ||
input[7] = false // save_trimmed_fail | ||
input[8] = false // save_merged | ||
input[9] = 1 // min_trimmed_reads | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot(workflow.out.reads).match("reads") }, | ||
{ assert snapshot(workflow.out.umi_log).match("umi_log") }, | ||
{ assert snapshot(workflow.out.trim_json).match("trim_json") }, | ||
{ assert snapshot(workflow.out.trim_reads_fail).match("trim_reads_fail") }, | ||
{ assert snapshot(workflow.out.trim_reads_merged).match("trim_reads_merged") }, | ||
{ assert snapshot(workflow.out.trim_read_count).match("trim_read_count") }, | ||
{ assert snapshot(workflow.out.versions).match("versions") }, | ||
|
||
{ assert workflow.out.fastqc_raw_html }, | ||
{ assert workflow.out.fastqc_raw_zip }, | ||
{ assert workflow.out.trim_html }, | ||
{ assert workflow.out.trim_log }, | ||
{ assert workflow.out.fastqc_trim_html }, | ||
{ assert workflow.out.fastqc_trim_zip } | ||
) | ||
} | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
subworkflows/nf-core/fastq_fastqc_umitools_fastp/tests/main.nf.test.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
subworkflows/nf-core/fastq_fastqc_umitools_fastp/tests/tags.yml
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 @@ | ||
subworkflows/fastq_fastqc_umitools_fastp: | ||
- subworkflows/nf-core/fastq_fastqc_umitools_fastp/** |
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
37 changes: 0 additions & 37 deletions
37
tests/subworkflows/nf-core/fastq_fastqc_umitools_fastp/main.nf
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
tests/subworkflows/nf-core/fastq_fastqc_umitools_fastp/nextflow.config
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
tests/subworkflows/nf-core/fastq_fastqc_umitools_fastp/test.yml
This file was deleted.
Oops, something went wrong.