2021-02-08 14:16:51 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { BCFTOOLS_STATS } from '../../../../modules/bcftools/stats/main.nf'
|
2021-02-08 14:16:51 +00:00
|
|
|
|
|
|
|
workflow test_bcftools_stats {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2022-09-21 14:10:38 +00:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
|
|
[]]
|
|
|
|
regions = []
|
|
|
|
targets = []
|
|
|
|
samples = []
|
2021-02-08 14:16:51 +00:00
|
|
|
|
2022-09-21 14:10:38 +00:00
|
|
|
BCFTOOLS_STATS ( input, regions, targets, samples )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_stats_regions {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)]
|
|
|
|
regions = file(params.test_data['sarscov2']['illumina']['test3_vcf_gz'], checkIfExists: true)
|
|
|
|
targets = []
|
|
|
|
samples = []
|
|
|
|
|
|
|
|
BCFTOOLS_STATS ( input, regions, targets, samples )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_stats_targets {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
|
|
[]]
|
|
|
|
regions = []
|
|
|
|
targets = file(params.test_data['sarscov2']['illumina']['test2_vcf_targets_tsv_gz'], checkIfExists: true)
|
|
|
|
samples = []
|
|
|
|
|
|
|
|
BCFTOOLS_STATS ( input, regions, targets, samples )
|
2021-02-08 14:16:51 +00:00
|
|
|
}
|