Skip to content

Commit

Permalink
Use singular form for recalibration_table
Browse files Browse the repository at this point in the history
  • Loading branch information
yashpatel6 committed Dec 20, 2023
1 parent b83b022 commit a772dae
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ input:
tumor:
- "/absolute/path/to/BAM"
- "/absolute/path/to/BAM"
recalibration_tables:
recalibration_table:
- "/absolute/path/to/recalibration/table1"
- "/absolute/path/to/recalibration/table2"
```
Expand Down
2 changes: 1 addition & 1 deletion config/custom_schema_types.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
custom_schema_types {
allowed_input_types = [
'BAM',
'recalibration_tables'
'recalibration_table'
]
allowed_bam_types = [
'normal',
Expand Down
4 changes: 2 additions & 2 deletions config/methods.config
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ methods {
}

set_recal_tables = {
params.use_recal_tables = params.input.containsKey('recalibration_tables')
params.use_recal_tables = params.input.containsKey('recalibration_table')

if (!params.use_recal_tables) {
params.input['recalibration_tables'] = ["${params.work_dir}/NO_FILE.grp"]
params.input['recalibration_table'] = ["${params.work_dir}/NO_FILE.grp"]
}
}

Expand Down
2 changes: 1 addition & 1 deletion config/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ input:
type: 'BAMEntryList'
required: false
help: 'Input tumor BAMs'
recalibration_tables:
recalibration_table:
type: 'RecalibrationTableList'
required: false
allow_empty: false
Expand Down
2 changes: 1 addition & 1 deletion input/recalibrate-BAM-multiple-input-with-recal-table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ input:
tumor:
- "/abosolute/path/to/BAM"
- "/absolute/path/to/BAM"
recalibration_tables:
recalibration_table:
- "/absolute/path/to/recalibration/table/sample1"
- "/absolute/path/to/recalibration/table/sample2"
- "/absolute/path/to/recalibration/table/sample3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ input:
BAM:
normal:
- "/absolute/path/to/BAM"
recalibration_tables:
recalibration_table:
- "/absolute/path/to/recalibration/table"
2 changes: 1 addition & 1 deletion input/recalibrate-BAM-paired-input-with-recal-table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ input:
- "/absolute/path/to/BAM"
tumor:
- "/absolute/path/to/BAM"
recalibration_tables:
recalibration_table:
- "/absolute/path/to/recalibration/table/sample1"
- "/absolute/path/to/recalibration/table/sample2"
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ input:
BAM:
tumor:
- "/absolute/path/to/BAM"
recalibration_tables:
recalibration_table:
- "/absolute/path/to/recalibration/table"
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Current Configuration:
bundle_v0_dbsnp138_vcf_gz: ${params.bundle_v0_dbsnp138_vcf_gz}
bundle_contest_hapmap_3p3_vcf_gz: ${params.bundle_contest_hapmap_3p3_vcf_gz}
intervals: ${(params.is_targeted) ?: 'WGS'}
recalibration_tables: ${params.input.recalibration_tables}
Recalibration tables: ${params.input.recalibration_table}
- output:
output: ${params.output_dir}
Expand Down
2 changes: 1 addition & 1 deletion module/base-recalibration.nf
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ workflow recalibrate_base {
params.bundle_v0_dbsnp138_vcf_gz,
"${params.bundle_v0_dbsnp138_vcf_gz}.tbi",
base_recalibrator_intervals,
params.input.recalibration_tables,
params.input.recalibration_table,
input_ch_base_recalibrator
)

Expand Down

0 comments on commit a772dae

Please sign in to comment.