2021-11-21 14:56:57 -05:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 02:58:40 -05: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 11:35:02 -04:00
|
|
|
include { CNVKIT_BATCH as CNVKIT_GERMLINE } from '../../../../modules/cnvkit/batch/main.nf'
|
2021-11-21 14:56:57 -05:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
workflow test_cnvkit_hybrid_somatic {
|
2021-11-21 14:56:57 -05:00
|
|
|
|
2021-11-26 02:58:40 -05: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 14:56:57 -05:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
CNVKIT_HYBRID ( input, fasta, [], targets, [] )
|
2021-11-21 14:56:57 -05:00
|
|
|
}
|
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
workflow test_cnvkit_wgs_somatic {
|
2021-11-21 14:56:57 -05:00
|
|
|
|
2021-11-26 02:58:40 -05: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 14:56:57 -05:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
CNVKIT_WGS ( input, fasta, [], [], [] )
|
2021-11-21 14:56:57 -05:00
|
|
|
}
|
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
workflow test_cnvkit_cram_wgs_somatic {
|
2021-11-21 14:56:57 -05:00
|
|
|
|
2021-11-26 02:58:40 -05:00
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
2022-05-20 03:13:27 -04: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 02:58:40 -05:00
|
|
|
]
|
2022-06-02 06:57:50 -04: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 14:56:57 -05:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
CNVKIT_WGS ( input, fasta, fasta_fai, [], [] )
|
2021-11-21 14:56:57 -05:00
|
|
|
}
|
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
|
|
|
|
workflow test_cnvkit_tumoronly_hybrid_bam {
|
2021-11-21 14:56:57 -05:00
|
|
|
|
2021-11-26 02:58:40 -05:00
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
2022-06-01 11:35:02 -04:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_recalibrated_sorted_bam'], checkIfExists: true),
|
2021-11-26 02:58:40 -05:00
|
|
|
[]
|
|
|
|
]
|
2022-06-01 11:35:02 -04:00
|
|
|
reference = file(params.test_data['homo_sapiens']['genome']['genome_21_reference_cnn'], checkIfExists: true)
|
2021-11-21 14:56:57 -05:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
CNVKIT_TUMORONLY ( input, [], [], [], reference )
|
2022-05-20 03:13:27 -04:00
|
|
|
}
|
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
workflow test_cnvkit_tumoronly_hybrid_cram {
|
2022-05-20 03:13:27 -04:00
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test'], // meta map
|
2022-06-01 11:35:02 -04:00
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_paired_end_recalibrated_sorted_cram'], checkIfExists: true),
|
2022-05-20 03:13:27 -04:00
|
|
|
[]
|
|
|
|
]
|
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
2022-06-01 11:35:02 -04:00
|
|
|
reference = file(params.test_data['homo_sapiens']['genome']['genome_21_reference_cnn'], checkIfExists: true)
|
2022-05-20 03:13:27 -04:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
CNVKIT_TUMORONLY ( input, fasta, [], [], reference )
|
2021-11-21 14:56:57 -05:00
|
|
|
}
|
2022-06-01 11:35:02 -04:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
workflow test_cnvkit_germline_hybrid_cram {
|
2022-06-01 11:35:02 -04: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 06:57:50 -04: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 11:35:02 -04:00
|
|
|
|
2022-06-02 06:57:50 -04:00
|
|
|
CNVKIT_GERMLINE ( input, fasta, [], targets, [])
|
2022-06-01 11:35:02 -04:00
|
|
|
}
|