2022-01-20 03:46:31 -05:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2022-02-21 05:49:21 -05:00
|
|
|
include { UNTAR } from '../../../modules/untar/main.nf'
|
2022-01-20 03:46:31 -05:00
|
|
|
include { VCFANNO } from '../../../modules/vcfanno/main.nf'
|
|
|
|
|
|
|
|
workflow test_vcfanno {
|
2022-03-21 09:49:28 -04:00
|
|
|
|
|
|
|
input = [
|
2022-02-21 05:49:21 -05:00
|
|
|
[ id:'test_compressed', single_end:false ], // meta map
|
2022-01-20 03:46:31 -05: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 09:49:28 -04:00
|
|
|
|
2022-02-21 05:49:21 -05:00
|
|
|
toml = file(params.test_data['homo_sapiens']['genome']['vcfanno_toml'], checkIfExists: true)
|
2022-03-21 09:49:28 -04:00
|
|
|
resource_dir = [[], file(params.test_data['homo_sapiens']['genome']['vcfanno_tar_gz'], checkIfExists: true) ]
|
2022-01-20 03:46:31 -05:00
|
|
|
|
2022-02-21 05:49:21 -05:00
|
|
|
UNTAR ( resource_dir )
|
2022-06-24 02:58:26 -04:00
|
|
|
VCFANNO ( input, toml, UNTAR.out.untar.map{ it[1] } )
|
2022-01-20 03:46:31 -05:00
|
|
|
}
|
2022-02-21 05:49:21 -05:00
|
|
|
|
|
|
|
workflow test_vcfanno_uncompressed {
|
|
|
|
|
2022-06-24 02:58:26 -04:00
|
|
|
input = [
|
2022-02-21 05:49:21 -05:00
|
|
|
[ id:'test_uncompressed', single_end:false ], // meta map
|
2022-06-24 02:58:26 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf'], checkIfExists: true),
|
|
|
|
[]
|
2022-02-21 05:49:21 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
toml = file(params.test_data['homo_sapiens']['genome']['vcfanno_toml'], checkIfExists: true)
|
2022-03-21 09:49:28 -04:00
|
|
|
resource_dir = [[], file(params.test_data['homo_sapiens']['genome']['vcfanno_tar_gz'], checkIfExists: true) ]
|
2022-02-21 05:49:21 -05:00
|
|
|
|
|
|
|
UNTAR ( resource_dir )
|
2022-06-24 02:58:26 -04:00
|
|
|
VCFANNO ( input, toml, UNTAR.out.untar.map{ it[1] } )
|
2022-03-21 09:49:28 -04:00
|
|
|
}
|