mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-26 12:28:17 +00:00
aa32a8a72e
* initiated files for calculate contamination * pushing local repo to remote * created script, filled in meta yml, created tests and test yml. local checks passing, needs repo side test data * added option and tests for outputting optional segmentation file * saving for test push * versions updated, test data added * Update main.nf * fixed versions info, should report correctly now * small update to main.nf outputs formatting * Apply suggestions from code review * Update test_data.config * Apply suggestions from code review Co-authored-by: GCJMackenzie <gavin.mackenzie@nibsc.org> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { GATK4_CALCULATECONTAMINATION } from '../../../../modules/gatk4/calculatecontamination/main.nf' addParams( options: [:] )
|
|
|
|
workflow test_gatk4_calculatecontamination_tumor_only {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_pileups_table'], checkIfExists: true),
|
|
[] ]
|
|
|
|
segmentout = false
|
|
|
|
GATK4_CALCULATECONTAMINATION ( input, segmentout )
|
|
}
|
|
|
|
workflow test_gatk4_calculatecontamination_matched_pair {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_pileups_table'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['illumina']['test_pileups_table'], checkIfExists: true) ]
|
|
|
|
segmentout = false
|
|
|
|
GATK4_CALCULATECONTAMINATION ( input, segmentout )
|
|
}
|
|
|
|
workflow test_gatk4_calculatecontamination_segmentation {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test2_pileups_table'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['illumina']['test_pileups_table'], checkIfExists: true) ]
|
|
|
|
segmentout = true
|
|
|
|
GATK4_CALCULATECONTAMINATION ( input, segmentout )
|
|
}
|