nf-core_modules/tests/modules/picard/fastqtosam/main.nf
Matthias De Smet ee46c19d03
new module: Picard/fastqtosam (#1911)
* add Picard FastqToSam

* Update test.yml

* update tests

* possible fix?

* fixed!

* Update modules/picard/fastqtosam/main.nf

Co-authored-by: Moritz E. Beber <midnighter@posteo.net>

* Update modules/picard/fastqtosam/main.nf

Co-authored-by: Moritz E. Beber <midnighter@posteo.net>

* simplify tests

* fix tests

* revert version check

Co-authored-by: CMGG ICT Team <ict@cmgg.be>
Co-authored-by: Moritz E. Beber <midnighter@posteo.net>
2022-08-30 14:27:00 +02:00

43 lines
1.1 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { PICARD_FASTQTOSAM } from '../../../../modules/picard/fastqtosam/main.nf'
workflow test_picard_fastqtosam_single {
input = [
[ id:'test', single_end:true ], // meta map
[
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)
]
]
PICARD_FASTQTOSAM ( input )
}
workflow test_picard_fastqtosam_paired {
input = [
[ 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)
]
]
PICARD_FASTQTOSAM ( input )
}
workflow test_picard_fastqtosam_paired_custom_samplename {
input = [
[ 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)
]
]
PICARD_FASTQTOSAM ( input )
}