2021-03-24 00:54:23 -04:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 02:58:40 -05:00
|
|
|
include { VCFTOOLS as VCFTOOLS_BASE } from '../../../modules/vcftools/main.nf'
|
|
|
|
include { VCFTOOLS as VCFTOOLS_OPTIONAL } from '../../../modules/vcftools/main.nf'
|
2021-03-24 00:54:23 -04:00
|
|
|
|
|
|
|
workflow test_vcftools_vcf_base {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-25 05:12:08 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-24 00:54:23 -04:00
|
|
|
|
|
|
|
VCFTOOLS_BASE ( input, [], [] )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_vcftools_vcfgz_base {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-25 05:12:08 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-24 00:54:23 -04:00
|
|
|
|
|
|
|
VCFTOOLS_BASE ( input, [], [] )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_vcftools_vcf_optional {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-25 05:12:08 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-25 05:12:08 -04:00
|
|
|
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
2021-03-24 00:54:23 -04:00
|
|
|
|
|
|
|
VCFTOOLS_OPTIONAL ( input, bed, [] )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_vcftools_vcfgz_optional {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-25 05:12:08 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-25 05:12:08 -04:00
|
|
|
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
2021-03-24 00:54:23 -04:00
|
|
|
|
|
|
|
VCFTOOLS_OPTIONAL ( input, bed, [] )
|
|
|
|
}
|