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
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
workflow test_cnvkit_hybrid_somatic {
|
2021-11-21 19:56:57 +00:00
|
|
|
|
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
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
CNVKIT_HYBRID ( input, fasta, [], targets, [] )
|
2021-11-21 19:56:57 +00:00
|
|
|
}
|
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
workflow test_cnvkit_wgs_somatic {
|
2021-11-21 19:56:57 +00:00
|
|
|
|
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
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
CNVKIT_WGS ( input, fasta, [], [], [] )
|
2021-11-21 19:56:57 +00:00
|
|
|
}
|
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
workflow test_cnvkit_cram_wgs_somatic {
|
2021-11-21 19:56:57 +00:00
|
|
|
|
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
|
|
|
]
|
2022-06-02 10:57:50 +00:00
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fasta_fai = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
2021-11-21 19:56:57 +00:00
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
CNVKIT_WGS ( input, fasta, fasta_fai, [], [] )
|
2021-11-21 19:56:57 +00:00
|
|
|
}
|
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
|
|
|
|
workflow test_cnvkit_tumoronly_hybrid_bam {
|
2021-11-21 19:56:57 +00:00
|
|
|
|
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-06-02 10:57:50 +00:00
|
|
|
CNVKIT_TUMORONLY ( input, [], [], [], reference )
|
2022-05-20 07:13:27 +00:00
|
|
|
}
|
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
workflow test_cnvkit_tumoronly_hybrid_cram {
|
2022-05-20 07:13:27 +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_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
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
CNVKIT_TUMORONLY ( input, fasta, [], [], reference )
|
2021-11-21 19:56:57 +00:00
|
|
|
}
|
2022-06-01 15:35:02 +00:00
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
workflow test_cnvkit_germline_hybrid_cram {
|
2022-06-01 15:35:02 +00:00
|
|
|
|
|
|
|
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)
|
2022-06-02 10:57:50 +00:00
|
|
|
fasta_fai = file(params.test_data['homo_sapiens']['genome']['genome_21_fasta_fai'], checkIfExists: true)
|
|
|
|
targets = file(params.test_data['homo_sapiens']['genome']['genome_21_multi_interval_bed'], checkIfExists: true)
|
|
|
|
|
|
|
|
CNVKIT_GERMLINE ( input, fasta, fasta_fai, targets, [])
|
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_cnvkit_germline_hybrid_bam {
|
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
|
|
|
[],
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_recalibrated_sorted_bam'], 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)
|
2022-06-01 15:35:02 +00:00
|
|
|
|
2022-06-02 10:57:50 +00:00
|
|
|
CNVKIT_GERMLINE ( input, fasta, [], targets, [])
|
2022-06-01 15:35:02 +00:00
|
|
|
}
|