Skip to content

Commit

Permalink
fastq_subsample_fq_salmon nf-test snapshot (nf-core#4419)
Browse files Browse the repository at this point in the history
  • Loading branch information
sateeshperi authored Nov 28, 2023
1 parent 1eb7ad8 commit c5ef823
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 48 deletions.
61 changes: 61 additions & 0 deletions subworkflows/nf-core/fastq_subsample_fq_salmon/tests/main.nf.test
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 }
)
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions subworkflows/nf-core/fastq_subsample_fq_salmon/tests/tags.yml
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/**
2 changes: 0 additions & 2 deletions test.tap

This file was deleted.

4 changes: 0 additions & 4 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3564,10 +3564,6 @@ subworkflows/fastq_fastqc_umitools_trimgalore:
- subworkflows/nf-core/fastq_fastqc_umitools_trimgalore/**
- tests/subworkflows/nf-core/fastq_fastqc_umitools_trimgalore/**

subworkflows/fastq_subsample_fq_salmon:
- subworkflows/nf-core/fastq_subsample_fq_salmon/**
- tests/subworkflows/nf-core/fastq_subsample_fq_salmon/**

subworkflows/fastq_trim_fastp_fastqc:
- subworkflows/nf-core/fastq_trim_fastp_fastqc/**
- tests/subworkflows/nf-core/fastq_trim_fastp_fastqc/**
Expand Down
25 changes: 0 additions & 25 deletions tests/subworkflows/nf-core/fastq_subsample_fq_salmon/main.nf

This file was deleted.

17 changes: 0 additions & 17 deletions tests/subworkflows/nf-core/fastq_subsample_fq_salmon/test.yml

This file was deleted.

0 comments on commit c5ef823

Please sign in to comment.