2022-01-20 08:46:31 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2022-02-21 10:49:21 +00:00
|
|
|
include { UNTAR } from '../../../modules/untar/main.nf'
|
2022-01-20 08:46:31 +00:00
|
|
|
include { VCFANNO } from '../../../modules/vcfanno/main.nf'
|
|
|
|
|
|
|
|
workflow test_vcfanno {
|
2022-03-21 13:49:28 +00:00
|
|
|
|
|
|
|
input = [
|
2022-02-21 10:49:21 +00:00
|
|
|
[ id:'test_compressed', single_end:false ], // meta map
|
2022-01-20 08:46:31 +00:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)
|
|
|
|
]
|
2022-03-21 13:49:28 +00:00
|
|
|
|
|
|
|
input_2 = [ [ id:'test_compressed', single_end:false ], // meta map
|
2022-02-21 10:49:21 +00:00
|
|
|
[] ]
|
2022-01-20 08:46:31 +00:00
|
|
|
|
2022-02-21 10:49:21 +00:00
|
|
|
toml = file(params.test_data['homo_sapiens']['genome']['vcfanno_toml'], checkIfExists: true)
|
2022-03-21 13:49:28 +00:00
|
|
|
resource_dir = [[], file(params.test_data['homo_sapiens']['genome']['vcfanno_tar_gz'], checkIfExists: true) ]
|
2022-01-20 08:46:31 +00:00
|
|
|
|
2022-02-21 10:49:21 +00:00
|
|
|
UNTAR ( resource_dir )
|
2022-03-21 13:49:28 +00:00
|
|
|
VCFANNO ( input, input_2, toml, UNTAR.out.untar.map{ it[1] } )
|
2022-01-20 08:46:31 +00:00
|
|
|
}
|
2022-02-21 10:49:21 +00:00
|
|
|
|
|
|
|
workflow test_vcfanno_uncompressed {
|
|
|
|
|
|
|
|
input = [ [ id:'test_uncompressed', single_end:false ], // meta map
|
|
|
|
[] ,[] ]
|
2022-03-21 13:49:28 +00:00
|
|
|
|
|
|
|
input_2 = [
|
2022-02-21 10:49:21 +00:00
|
|
|
[ id:'test_uncompressed', single_end:false ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf'], checkIfExists: true)
|
|
|
|
]
|
|
|
|
|
|
|
|
toml = file(params.test_data['homo_sapiens']['genome']['vcfanno_toml'], checkIfExists: true)
|
2022-03-21 13:49:28 +00:00
|
|
|
resource_dir = [[], file(params.test_data['homo_sapiens']['genome']['vcfanno_tar_gz'], checkIfExists: true) ]
|
2022-02-21 10:49:21 +00:00
|
|
|
|
|
|
|
UNTAR ( resource_dir )
|
2022-03-21 13:49:28 +00:00
|
|
|
VCFANNO ( input, input_2, toml, UNTAR.out.untar.map{ it[1] } )
|
|
|
|
}
|