nf-core_modules/tests/software/ivar/variants/main.nf

28 lines
985 B
Text
Raw Normal View History

2021-02-15 17:29:40 +00:00
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
params.save_mpileup = true
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 input = []
input = [ [ id:'test'],
file("${launchDir}/tests/data/bam/test-sc2-artic-v3-sorted-trimmed.bam", checkIfExists: true) ]
2021-02-15 19:51:04 +00:00
IVAR_VARIANTS ( input, ref )
2021-02-15 17:29:40 +00:00
}
2021-02-15 19:51:04 +00:00
params.gff = file("${launchDir}/tests/data/gff/sarscov2/MN908947.3.gff3", checkIfExists: true)
2021-02-15 17:29:40 +00:00
workflow test_ivar_variants_with_gff {
2021-02-15 19:51:04 +00:00
2021-02-15 17:29:40 +00:00
def ref = file("${launchDir}/tests/data/fasta/sarscov2/MN908947.3.fa", checkIfExists: true)
def gff = file(params.gff, checkIfExists: true)
2021-02-15 17:29:40 +00:00
def input = []
input = [ [ id:'test'],
file("${launchDir}/tests/data/bam/test-sc2-artic-v3-sorted-trimmed.bam", checkIfExists: true) ]
IVAR_VARIANTS ( input, ref, gff )
2021-02-15 17:29:40 +00:00
}