nf-core_modules/tests/software/ivar/variants/main.nf
Anders Goncalves da Silva 3188b8e30e
Add explicit gff is false param
Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-02-15 19:55:34 -08:00

29 lines
1 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
params.save_mpileup = true
params.gff = false
include { IVAR_VARIANTS } from '../../../../software/ivar/variants/main.nf' addParams([:])
workflow test_ivar_variants_no_gff {
def ref = file("${launchDir}/tests/data/fasta/sarscov2/MN908947.3.fa", checkIfExists: true)
def dummy = file("${launchDir}/tests/data/dummy/dummy_file.txt", checkIfExists: true)
def input = []
input = [ [ id:'test'],
file("${launchDir}/tests/data/bam/test-sc2-artic-v3-sorted-trimmed.bam", checkIfExists: true) ]
IVAR_VARIANTS ( input, ref, dummy )
}
params.gff = "${launchDir}/tests/data/gff/sarscov2/MN908947.3.gff3"
workflow test_ivar_variants_with_gff {
def ref = file("${launchDir}/tests/data/fasta/sarscov2/MN908947.3.fa", checkIfExists: true)
def gff = file(params.gff, checkIfExists: true)
def input = []
input = [ [ id:'test'],
file("${launchDir}/tests/data/bam/test-sc2-artic-v3-sorted-trimmed.bam", checkIfExists: true) ]
IVAR_VARIANTS ( input, ref, gff )
}