2021-02-24 14:59:10 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2022-06-13 15:02:59 +00:00
|
|
|
include { BWA_INDEX } from '../../../../modules/bwa/index/main.nf'
|
|
|
|
include { TIDDIT_SV } from '../../../../modules/tiddit/sv/main.nf'
|
|
|
|
include { TIDDIT_SV as TIDDIT_SV_NOBWA } from '../../../../modules/tiddit/sv/main.nf'
|
2021-02-24 14:59:10 +00:00
|
|
|
|
2022-06-03 11:00:29 +00:00
|
|
|
workflow test_tiddit_sv_bam {
|
2022-06-03 08:52:50 +00:00
|
|
|
input = [
|
2021-07-01 15:13:01 +00:00
|
|
|
[ id:'test' ], // meta map
|
2022-06-03 11:00:29 +00:00
|
|
|
[ 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) ]
|
2021-07-01 15:13:01 +00:00
|
|
|
]
|
2022-06-03 08:52:50 +00:00
|
|
|
|
2021-04-01 19:22:06 +00:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
2021-02-24 14:59:10 +00:00
|
|
|
|
2022-06-03 08:52:50 +00:00
|
|
|
BWA_INDEX( fasta )
|
|
|
|
|
2022-06-03 13:51:02 +00:00
|
|
|
TIDDIT_SV ( input, fasta, BWA_INDEX.out.index)
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_tiddit_sv_cram {
|
|
|
|
input = [
|
|
|
|
[ id:'test' ], // 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) ]
|
|
|
|
]
|
|
|
|
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
|
|
|
|
BWA_INDEX( fasta )
|
|
|
|
|
|
|
|
TIDDIT_SV ( input, fasta, BWA_INDEX.out.index)
|
2021-02-24 14:59:10 +00:00
|
|
|
}
|
2022-06-13 15:02:59 +00:00
|
|
|
|
|
|
|
workflow test_tiddit_sv_nobwa_bam {
|
|
|
|
input = [
|
|
|
|
[ id:'test' ], // 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) ]
|
|
|
|
]
|
|
|
|
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
|
|
|
|
TIDDIT_SV_NOBWA ( input, fasta, [])
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_tiddit_sv_nobwa_cram {
|
|
|
|
input = [
|
|
|
|
[ id:'test' ], // 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) ]
|
|
|
|
]
|
|
|
|
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
|
|
|
|
TIDDIT_SV_NOBWA ( input, fasta, [])
|
|
|
|
}
|