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