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

37 lines
987 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
2021-02-03 16:20:02 +00:00
include { BWA_MEM } from '../../../../software/bwa/mem/main.nf' addParams( options: [:] )
/*
* Test with single-end data
*/
workflow test_bwa_mem_single_end {
def input = []
input = [ [ id:'test', single_end:true ], // meta map
[ file("${launchDir}/tests/data/fastq/dna/Ecoli_DNA_R1.fastq.gz", checkIfExists: true) ] ]
BWA_MEM (
input,
2021-02-02 12:35:06 +00:00
file("${launchDir}/tests/data/index/E_coli/bwa/", checkIfExists: true)
)
}
/*
* Test with paired-end data
*/
workflow test_bwa_mem_paired_end {
def input = []
input = [ [ id:'test', single_end:false ], // meta map
[ file("${launchDir}/tests/data/fastq/dna/Ecoli_DNA_R1.fastq.gz", checkIfExists: true),
file("${launchDir}/tests/data/fastq/dna/Ecoli_DNA_R2.fastq.gz", checkIfExists: true) ] ]
BWA_MEM (
input,
2021-02-02 12:35:06 +00:00
file("${launchDir}/tests/data/index/E_coli/bwa/", checkIfExists: true)
)
}