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

41 lines
1.3 KiB
Text
Raw Normal View History

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { BCFTOOLS_REHEADER } from '../../../../modules/bcftools/reheader/main.nf' addParams( options: [suffix: '.updated'] )
workflow test_bcftools_reheader_update_sequences {
input = [
[ id:'test', single_end:false ],
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true)
]
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
header = []
BCFTOOLS_REHEADER ( input, fai, header )
}
workflow test_bcftools_reheader_new_header {
input = [
[ id:'test', single_end:false ],
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true)
]
fai = []
header = file(params.test_data['sarscov2']['illumina']['test_vcf'], checkIfExists: true)
BCFTOOLS_REHEADER ( input, fai, header )
}
workflow test_bcftools_reheader_new_header_update_sequences {
input = [
[ id:'test', single_end:false ],
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true)
]
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
header = file(params.test_data['sarscov2']['illumina']['test_vcf'], checkIfExists: true)
BCFTOOLS_REHEADER ( input, fai, header )
}