2021-08-10 13:10:27 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { BCFTOOLS_CONCAT } from '../../../../modules/bcftools/concat/main.nf'
|
2021-08-10 13:10:27 +00:00
|
|
|
|
2022-05-31 13:15:58 +00:00
|
|
|
workflow test_bcftools_concat_tbi {
|
2021-08-10 13:10:27 +00:00
|
|
|
|
|
|
|
input = [ [ id:'test3' ], // meta map
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
2022-05-31 13:15:58 +00:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test2_vcf_gz'], checkIfExists: true) ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test2_vcf_gz_tbi'], checkIfExists: true) ]
|
2021-08-10 13:10:27 +00:00
|
|
|
]
|
|
|
|
|
2022-05-31 13:15:58 +00:00
|
|
|
BCFTOOLS_CONCAT ( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_concat_no_tbi {
|
|
|
|
|
|
|
|
input = [ [ id:'test3' ], // meta map
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test2_vcf_gz'], checkIfExists: true) ],
|
|
|
|
[]
|
|
|
|
]
|
2021-08-10 13:10:27 +00:00
|
|
|
|
|
|
|
BCFTOOLS_CONCAT ( input )
|
|
|
|
}
|