nf-core_modules/tests/modules/cutadapt/main.nf

30 lines
808 B
Text
Raw Normal View History

2021-01-29 08:33:45 +00:00
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { CUTADAPT } from '../../../modules/cutadapt/main.nf' addParams( options: [ args:'-q 25' ] )
2021-01-29 08:33:45 +00:00
//
// Test with single-end data
//
workflow test_cutadapt_single_end {
2021-01-29 08:33:45 +00:00
input = [ [ id:'test', single_end:true ], // meta map
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]
]
CUTADAPT ( input )
2021-01-29 08:33:45 +00:00
}
//
// Test with paired-end data
//
workflow test_cutadapt_paired_end {
2021-01-29 08:33:45 +00:00
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) ]
]
CUTADAPT ( input )
2021-01-29 08:33:45 +00:00
}