2021-02-19 12:29:08 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
|
|
|
include { GATK4_MERGEVCFS } from '../../../../software/gatk4/mergevcfs/main.nf' addParams( options: [:] )
|
|
|
|
|
|
|
|
workflow test_gatk4_mergevcfs {
|
|
|
|
def input = []
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-09 09:04:08 +00:00
|
|
|
[ file("${launchDir}/tests/data/genomics/sarscov2/vcf/test.vcf", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/genomics/sarscov2/vcf/test2.vcf", checkIfExists: true) ] ]
|
2021-02-19 12:29:08 +00:00
|
|
|
|
2021-03-09 09:04:08 +00:00
|
|
|
ref_dict = file('tests/data/genomics/sarscov2/fasta/test_genome.dict', checkIfExists: true)
|
2021-02-19 13:09:32 +00:00
|
|
|
|
|
|
|
GATK4_MERGEVCFS ( input, ref_dict, false )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_gatk4_mergevcfs_refdict {
|
|
|
|
def input = []
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-09 09:04:08 +00:00
|
|
|
[ file("${launchDir}/tests/data/genomics/sarscov2/vcf/test.vcf", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/genomics/sarscov2/vcf/test2.vcf", checkIfExists: true) ] ]
|
2021-02-19 13:09:32 +00:00
|
|
|
|
2021-03-09 09:04:08 +00:00
|
|
|
ref_dict = file('tests/data/genomics/sarscov2/fasta/test_genome.dict', checkIfExists: true)
|
2021-02-19 13:09:32 +00:00
|
|
|
|
|
|
|
GATK4_MERGEVCFS ( input, ref_dict, true )
|
2021-02-19 12:29:08 +00:00
|
|
|
}
|