2021-02-23 18:05:57 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { BCFTOOLS_MPILEUP } from '../../../../modules/bcftools/mpileup/main.nf'
|
2021-02-23 18:05:57 +00:00
|
|
|
|
|
|
|
workflow test_bcftools_mpileup {
|
|
|
|
|
2022-01-18 16:04:56 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test' ], // meta map
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
save_mpileup = false
|
|
|
|
|
|
|
|
BCFTOOLS_MPILEUP ( input, fasta, save_mpileup )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_bcftools_save_mpileup {
|
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test' ], // meta map
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true) ]
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
save_mpileup = true
|
|
|
|
|
|
|
|
BCFTOOLS_MPILEUP ( input, fasta, save_mpileup )
|
2021-02-23 18:05:57 +00:00
|
|
|
}
|