nf-core_modules/tests/modules/bcftools/merge/main.nf

69 lines
3.1 KiB
Text
Raw Normal View History

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
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
[ 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-02-12 23:08:57 +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
}