Skip to content

Commit

Permalink
test: new tests for picard/samtofastq
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 23, 2023
1 parent eda8703 commit 92a7a0b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
9 changes: 1 addition & 8 deletions tests/modules/CCBR/picard/samtofastq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

nextflow.enable.dsl = 2

include { PICARD_SAMTOFASTQ } from '../../../../../modules/nf-core/picard/samtofastq/main.nf'
include { PICARD_SAMTOFASTQ } from '../../../../../modules/CCBR/picard/samtofastq/main.nf'

workflow test_picard_samtofastq_single {
input = [ [ id:'test', single_end: true ], // meta map
Expand All @@ -17,10 +17,3 @@ workflow test_picard_samtofastq_paired {
]
PICARD_SAMTOFASTQ ( input )
}

workflow test_picard_samtofastq_paired_keep_unpaired {
input = [ [ id:'test', single_end: false ], // meta map
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) ]
]
PICARD_SAMTOFASTQ ( input )
}
3 changes: 0 additions & 3 deletions tests/modules/CCBR/picard/samtofastq/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
process {

publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
withName: "test_picard_samtofastq_paired_keep_unpaired" {
ext.args = "--UNPAIRED_FASTQ test.unpaired.fastq"
}
}
34 changes: 34 additions & 0 deletions tests/modules/CCBR/picard/samtofastq/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
- name: picard samtofastq test_picard_samtofastq_single
command: nextflow run ./tests/modules/CCBR/picard/samtofastq -entry test_picard_samtofastq_single -c ./tests/config/nextflow.config
tags:
- picard/samtofastq
- picard
files:
- path: output/picard/test.fastq.gz
contains:
- "@ERR5069949.2151832"
- path: output/picard/versions.yml

- name: picard samtofastq test_picard_samtofastq_paired
command: nextflow run ./tests/modules/CCBR/picard/samtofastq -entry test_picard_samtofastq_paired -c ./tests/config/nextflow.config
tags:
- picard/samtofastq
- picard
files:
- path: output/picard/test_1.fastq.gz
contains:
- "@ERR5069949.2151832/1"
- path: output/picard/test_2.fastq.gz
contains:
- "@ERR5069949.2151832/2"
- path: output/picard/test.unpaired.fastq.gz
- path: output/picard/versions.yml

- name: picard samtofastq test_picard_samtofastq_single stub
command: nextflow run ./tests/modules/CCBR/picard/samtofastq -entry test_picard_samtofastq_single -c ./tests/config/nextflow.config -stub
tags:
- picard/samtofastq
- picard
files:
- path: output/picard/test.fastq.gz
- path: output/picard/versions.yml

0 comments on commit 92a7a0b

Please sign in to comment.