2021-02-12 23:08:57 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
|
|
|
//keep --no-verson argument, otherwise md5 will change on each execution
|
2022-07-20 09:22:51 +00:00
|
|
|
include { BCFTOOLS_MERGE } from '../../../../modules/bcftools/merge/main.nf'
|
|
|
|
include { BCFTOOLS_MERGE as BCFTOOLS_MERGE_GVCF } from '../../../../modules/bcftools/merge/main.nf'
|
|
|
|
include { BCFTOOLS_MERGE as BCFTOOLS_MERGE_BCF } from '../../../../modules/bcftools/merge/main.nf'
|
2021-02-12 23:08:57 +00:00
|
|
|
|
|
|
|
workflow test_bcftools_merge {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
2021-03-24 18:14:11 +00:00
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test2_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test3_vcf_gz'], checkIfExists: true) ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test2_vcf_gz_tbi'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test3_vcf_gz_tbi'], checkIfExists: true) ]
|
2021-03-24 09:53:41 +00:00
|
|
|
]
|
2021-02-12 23:08:57 +00:00
|
|
|
|
2022-07-20 09:22:51 +00:00
|
|
|
bed = []
|
|
|
|
fasta = []
|
|
|
|
fasta_fai = []
|
|
|
|
|
|
|
|
BCFTOOLS_MERGE ( input, bed, fasta, fasta_fai )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_merge_bed {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test2_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test3_vcf_gz'], checkIfExists: true) ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test2_vcf_gz_tbi'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test3_vcf_gz_tbi'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
|
|
|
|
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
|
|
|
fasta = []
|
|
|
|
fasta_fai = []
|
|
|
|
|
|
|
|
BCFTOOLS_MERGE ( input, bed, fasta, fasta_fai )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_merge_gvcf {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
|
|
[ file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf_gz_tbi'], checkIfExists: true) ],
|
|
|
|
[ file(params.test_data['homo_sapiens']['illumina']['test2_genome_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_genome_vcf_gz_tbi'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
|
|
|
|
bed = []
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fasta_fai = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
|
|
|
|
BCFTOOLS_MERGE_GVCF ( input, bed, fasta, fasta_fai )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_merge_bcf {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test2_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test3_vcf_gz'], checkIfExists: true) ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test2_vcf_gz_tbi'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test3_vcf_gz_tbi'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
|
|
|
|
bed = []
|
|
|
|
fasta = []
|
|
|
|
fasta_fai = []
|
|
|
|
|
|
|
|
BCFTOOLS_MERGE_BCF ( input, bed, fasta, fasta_fai )
|
2021-02-12 23:08:57 +00:00
|
|
|
}
|