mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 04:33:10 +00:00
63 lines
1.9 KiB
Text
63 lines
1.9 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { RTGTOOLS_VCFEVAL } from '../../../../modules/rtgtools/vcfeval/main.nf'
|
|
include { UNTAR } from '../../../modules/untar/main.nf'
|
|
|
|
workflow test_rtgtools_vcfeval {
|
|
|
|
input = [
|
|
[ id:'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_haplotc_vcf_gz'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_haplotc_vcf_gz_tbi'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['genome']['genome_21_multi_interval_bed'], checkIfExists: true)
|
|
]
|
|
|
|
truth = [
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_haplotc_ann_vcf_gz'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_haplotc_ann_vcf_gz_tbi'], checkIfExists: true)
|
|
]
|
|
|
|
compressed_sdf = [
|
|
[],
|
|
file(params.test_data['homo_sapiens']['genome']['genome_21_sdf'])
|
|
]
|
|
|
|
sdf = UNTAR( compressed_sdf ).untar
|
|
.map({
|
|
meta, folder ->
|
|
folder
|
|
})
|
|
|
|
|
|
RTGTOOLS_VCFEVAL ( input, truth, sdf )
|
|
}
|
|
|
|
workflow test_rtgtools_vcfeval_no_index {
|
|
|
|
input = [
|
|
[ id:'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_haplotc_vcf_gz'], checkIfExists: true),
|
|
[],
|
|
file(params.test_data['homo_sapiens']['genome']['genome_21_multi_interval_bed'], checkIfExists: true)
|
|
]
|
|
|
|
truth = [
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_haplotc_ann_vcf_gz'], checkIfExists: true),
|
|
[]
|
|
]
|
|
|
|
compressed_sdf = [
|
|
[],
|
|
file(params.test_data['homo_sapiens']['genome']['genome_21_sdf'])
|
|
]
|
|
|
|
sdf = UNTAR( compressed_sdf ).untar
|
|
.map({
|
|
meta, folder ->
|
|
[folder]
|
|
})
|
|
|
|
RTGTOOLS_VCFEVAL ( input, truth, sdf )
|
|
}
|