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_subsample_fq_salmon nf-test snapshot (nf-core#4419)
- Loading branch information
1 parent
1eb7ad8
commit c5ef823
Showing
8 changed files
with
91 additions
and
48 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
subworkflows/nf-core/fastq_subsample_fq_salmon/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,61 @@ | ||
nextflow_workflow { | ||
|
||
name "Test Workflow FASTQ_SUBSAMPLE_FQ_SALMON" | ||
script "../main.nf" | ||
workflow "FASTQ_SUBSAMPLE_FQ_SALMON" | ||
config "./nextflow.config" | ||
tag "subworkflows" | ||
tag "subworkflows_nfcore" | ||
tag "subworkflows/fastq_subsample_fq_salmon" | ||
tag "fastq_subsample_fq_salmon" | ||
tag "salmon/index" | ||
tag "fq/subsample" | ||
tag "salmon/quant" | ||
|
||
|
||
test("homo_sapiens paired-end [fastq]") { | ||
|
||
setup { | ||
run("SALMON_INDEX") { | ||
script "../../../../modules/nf-core/salmon/index/main.nf" | ||
process { | ||
""" | ||
input[0] = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true) // genome_fasta | ||
input[1] = file(params.test_data['homo_sapiens']['genome']['transcriptome_fasta'], checkIfExists: true) // transcript_fasta | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
workflow { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.test_data['homo_sapiens']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['homo_sapiens']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true) // genome_fasta | ||
input[2] = file(params.test_data['homo_sapiens']['genome']['transcriptome_fasta'], checkIfExists: true) // transcript_fasta | ||
input[3] = file(params.test_data['homo_sapiens']['genome']['genome_gtf'], checkIfExists: true) // gtf | ||
input[4] = SALMON_INDEX.out.index | ||
input[5] = false | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot(workflow.out.reads).match("reads") }, | ||
{ assert snapshot(workflow.out.versions).match("versions") }, | ||
|
||
{ assert workflow.out.index }, | ||
{ assert workflow.out.results }, | ||
{ assert workflow.out.json_info } | ||
) | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
subworkflows/nf-core/fastq_subsample_fq_salmon/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.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
subworkflows/nf-core/fastq_subsample_fq_salmon/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_subsample_fq_salmon: | ||
- subworkflows/nf-core/fastq_subsample_fq_salmon/** |
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
25 changes: 0 additions & 25 deletions
25
tests/subworkflows/nf-core/fastq_subsample_fq_salmon/main.nf
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
tests/subworkflows/nf-core/fastq_subsample_fq_salmon/test.yml
This file was deleted.
Oops, something went wrong.