nf-core_modules/deprecated/cutadapt/test/main.nf

21 lines
797 B
Text
Raw Normal View History

2020-07-11 15:09:06 +00:00
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../main.nf' params(params)
// Define input channels
2020-07-11 15:14:14 +00:00
input_fastqs = Channel.fromFilePairs('../../../test-datasets/tools/cutadapt/input/*_{1,2}.fastq' )
2020-07-11 15:09:06 +00:00
2020-07-11 15:14:14 +00:00
if(params.single_end){
input_fastqs = Channel.from([
['SRR4238351', '../../../test-datasets/tools/cutadapt/input/SRR4238351_subsamp.fastq.gz'],
['SRR4238355', '../../../test-datasets/tools/cutadapt/input/SRR4238355_subsamp.fastq.gz'],
['SRR4238359', '../../../test-datasets/tools/cutadapt/input/SRR4238359_subsamp.fastq.gz'],
['SRR4238379', '../../../test-datasets/tools/cutadapt/input/SRR4238379_subsamp.fastq.gz']
]).map { row -> [ row[0], [ file(row[1]) ] ] }
}
2020-07-11 15:09:06 +00:00
// Run the workflow
workflow {
2020-07-11 15:14:14 +00:00
cutadapt(input_fastqs)
2020-07-11 15:09:06 +00:00
}