2021-07-23 21:24:19 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { BCFTOOLS_REHEADER } from '../../../../modules/bcftools/reheader/main.nf'
|
2021-07-23 21:24:19 +00:00
|
|
|
|
|
|
|
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 )
|
|
|
|
}
|