2021-11-03 06:22:06 -04:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 02:58:40 -05:00
|
|
|
include { FREEBAYES } from '../../../modules/freebayes/main.nf'
|
2021-11-03 06:22:06 -04:00
|
|
|
|
|
|
|
workflow test_freebayes {
|
2022-02-10 04:34:22 -05:00
|
|
|
targets = []
|
2021-11-03 06:22:06 -04:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true),
|
|
|
|
[],
|
2022-02-10 04:34:22 -05:00
|
|
|
[],
|
|
|
|
targets
|
2021-11-03 06:22:06 -04:00
|
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
2022-02-10 04:34:22 -05:00
|
|
|
|
2021-11-03 06:22:06 -04:00
|
|
|
samples = []
|
|
|
|
populations = []
|
|
|
|
cnv = []
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
FREEBAYES (input, fasta, fai, samples, populations, cnv)
|
2021-11-03 06:22:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_freebayes_bed {
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
targets = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
|
2021-11-03 06:22:06 -04:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true),
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true),
|
|
|
|
[],
|
2022-02-10 04:34:22 -05:00
|
|
|
[],
|
|
|
|
targets
|
2021-11-03 06:22:06 -04:00
|
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
2022-02-10 04:34:22 -05:00
|
|
|
|
2021-11-03 06:22:06 -04:00
|
|
|
samples = []
|
|
|
|
populations = []
|
|
|
|
cnv = []
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
FREEBAYES (input, fasta, fai, samples, populations, cnv)
|
2021-11-03 06:22:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_freebayes_cram {
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
targets = []
|
2021-11-03 06:22:06 -04:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram_crai'], checkIfExists: true),
|
|
|
|
[],
|
2022-02-10 04:34:22 -05:00
|
|
|
[],
|
|
|
|
targets
|
2021-11-03 06:22:06 -04:00
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fai = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
samples = []
|
|
|
|
populations = []
|
|
|
|
cnv = []
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
FREEBAYES (input, fasta, fai, samples, populations, cnv)
|
2021-11-03 06:22:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_freebayes_somatic {
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
targets = []
|
2021-11-03 06:22:06 -04:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_bam'], checkIfExists: true),
|
2022-02-10 04:34:22 -05:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_bam_bai'], checkIfExists: true),
|
|
|
|
targets
|
2021-11-03 06:22:06 -04:00
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fai = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
2022-02-10 04:34:22 -05:00
|
|
|
|
2021-11-03 06:22:06 -04:00
|
|
|
samples = []
|
|
|
|
populations = []
|
|
|
|
cnv = []
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
FREEBAYES (input, fasta, fai, samples, populations, cnv)
|
2021-11-03 06:22:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_freebayes_somatic_cram_intervals {
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
targets = file(params.test_data['homo_sapiens']['genome']['genome_bed'], checkIfExists: true)
|
2021-11-03 06:22:06 -04:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram_crai'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_cram'], checkIfExists: true),
|
2022-02-10 04:34:22 -05:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_cram_crai'], checkIfExists: true),
|
|
|
|
targets
|
2021-11-03 06:22:06 -04:00
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fai = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
samples = []
|
|
|
|
populations = []
|
|
|
|
cnv = []
|
|
|
|
|
2022-02-10 04:34:22 -05:00
|
|
|
FREEBAYES (input, fasta, fai, samples, populations, cnv)
|
2021-11-03 06:22:06 -04:00
|
|
|
}
|