2021-11-21 19:56:57 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { CNVKIT_BATCH as CNVKIT_HYBRID } from '../../../../modules/cnvkit/batch/main.nf'
|
|
|
|
include { CNVKIT_BATCH as CNVKIT_WGS } from '../../../../modules/cnvkit/batch/main.nf'
|
|
|
|
include { CNVKIT_BATCH as CNVKIT_TUMORONLY } from '../../../../modules/cnvkit/batch/main.nf'
|
2022-06-01 15:35:02 +00:00
|
|
|
include { CNVKIT_BATCH as CNVKIT_GERMLINE } from '../../../../modules/cnvkit/batch/main.nf'
|
2021-11-21 19:56:57 +00:00
|
|
|
|
|
|
|
workflow test_cnvkit_hybrid {
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
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_single_end_sorted_bam'], checkIfExists: true)
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
targets = file(params.test_data['sarscov2']['genome']['baits_bed'], checkIfExists: true)
|
2021-11-21 19:56:57 +00:00
|
|
|
|
|
|
|
CNVKIT_HYBRID ( input, fasta, targets, [] )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_cnvkit_wgs {
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_bam'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
2021-11-21 19:56:57 +00:00
|
|
|
|
|
|
|
CNVKIT_WGS ( input, fasta, [], [] )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_cnvkit_cram {
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
2022-05-20 07:13:27 +00:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_sorted_cram'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true)
|
2021-11-26 07:58:40 +00:00
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
2021-11-21 19:56:57 +00:00
|
|
|
|
|
|
|
CNVKIT_WGS ( input, fasta, [], [] )
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_cnvkit_tumoronly {
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
2022-06-01 15:35:02 +00:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_recalibrated_sorted_bam'], checkIfExists: true),
|
2021-11-26 07:58:40 +00:00
|
|
|
[]
|
|
|
|
]
|
2022-06-01 15:35:02 +00:00
|
|
|
reference = file(params.test_data['homo_sapiens']['genome']['genome_21_reference_cnn'], checkIfExists: true)
|
2021-11-21 19:56:57 +00:00
|
|
|
|
2022-05-20 11:06:16 +00:00
|
|
|
CNVKIT_TUMORONLY ( input, [], [], reference )
|
2022-05-20 07:13:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_cnvkit_tumoronly_cram {
|
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
2022-06-01 15:35:02 +00:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_recalibrated_sorted_cram'], checkIfExists: true),
|
2022-05-20 07:13:27 +00:00
|
|
|
[]
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
2022-06-01 15:35:02 +00:00
|
|
|
reference = file(params.test_data['homo_sapiens']['genome']['genome_21_reference_cnn'], checkIfExists: true)
|
2022-05-20 07:13:27 +00:00
|
|
|
|
|
|
|
CNVKIT_TUMORONLY ( input, fasta, [], reference )
|
2021-11-21 19:56:57 +00:00
|
|
|
}
|
2022-06-01 15:35:02 +00:00
|
|
|
|
|
|
|
workflow test_cnvkit_germline_cram {
|
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
|
|
|
[],
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_recalibrated_sorted_cram'], checkIfExists: true)
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_21_fasta'], checkIfExists: true)
|
|
|
|
targets = file(params.test_data['homo_sapiens']['genome']['genome_21_multi_interval_bed'], checkIfExists: true)
|
|
|
|
|
|
|
|
CNVKIT_GERMLINE ( input, fasta, targets, [])
|
|
|
|
}
|