Fix tests to work with gff param

This commit is contained in:
Anders Goncalves da Silva 2021-02-15 11:51:04 -08:00
parent e8d1171b5d
commit 9a5aa0f145
No known key found for this signature in database
GPG key ID: 9DAECD8B113C8AFE

View file

@ -8,18 +8,19 @@ include { IVAR_VARIANTS } from '../../../../software/ivar/variants/main.nf' addP
workflow test_ivar_variants_no_gff {
def ref = file("${launchDir}/tests/data/fasta/sarscov2/MN908947.3.fa", checkIfExists: true)
def gff = file('NO_FILE')
def input = []
input = [ [ id:'test'],
file("${launchDir}/tests/data/bam/test-sc2-artic-v3-sorted-trimmed.bam", checkIfExists: true) ]
IVAR_VARIANTS ( input, ref, gff )
IVAR_VARIANTS ( input, ref )
}
params.gff = file("${launchDir}/tests/data/gff/sarscov2/MN908947.3.gff3", checkIfExists: true)
workflow test_ivar_variants_with_gff {
def ref = file("${launchDir}/tests/data/fasta/sarscov2/MN908947.3.fa", checkIfExists: true)
def gff = file("${launchDir}/tests/data/gff/sarscov2/MN908947.3.gff3", 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 )
IVAR_VARIANTS ( input, ref )
}