nf-core_modules/software/bwa/mem/test/main.nf

46 lines
1.2 KiB
Text
Raw Normal View History

#!/usr/bin/env nextflow
2020-08-07 12:24:24 +00:00
nextflow.enable.dsl = 2
include { BWA_MEM } from '../main.nf'
/*
* Test with single-end data
*/
workflow test_single_end {
def input = []
input = [ [ id:'test', single_end:true ], // meta map
[ file("${baseDir}/input/Ecoli_DNA_R1.fastq.gz", checkIfExists: true) ] ]
BWA_MEM (
input,
file("${baseDir}/input/index/NC_010473.fa.{amb,ann,bwt,pac,sa}", checkIfExists: true),
file("${baseDir}/input/NC_010473.fa", checkIfExists: true),
2020-08-07 12:27:06 +00:00
[ publish_dir:'test_single_end' ]
2020-08-07 12:24:24 +00:00
)
}
/*
* Test with paired-end data
*/
workflow test_paired_end {
def input = []
input = [ [ id:'test', single_end:false ], // meta map
[ file("${baseDir}/input/Ecoli_DNA_R1.fastq.gz", checkIfExists: true),
file("${baseDir}/input/Ecoli_DNA_R2.fastq.gz", checkIfExists: true) ] ]
BWA_MEM (
input,
file("${baseDir}/input/index/NC_010473.fa.{amb,ann,bwt,pac,sa}", checkIfExists: true),
file("${baseDir}/input/NC_010473.fa", checkIfExists: true),
[ publish_dir:'test_paired_end' ]
)
}
workflow {
2020-08-07 12:24:24 +00:00
test_single_end()
test_paired_end()
}