mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 04:33:10 +00:00
8656636f0d
* update for bcftools merge * Update modules/bcftools/merge/main.nf Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se> * Update modules/bcftools/merge/main.nf Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se> * updated test.yml * added the bed file to the main input tuple * merged all output into one output channel * added a test for bcf.gz output * Update modules/bcftools/merge/main.nf Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com> * updated the tests Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com>
68 lines
3.1 KiB
Text
68 lines
3.1 KiB
Text
#!/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'
|
|
|
|
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) ]
|
|
]
|
|
|
|
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 )
|
|
}
|