Skip to content

Commit dfd1748

Browse files
committed
Merge branch 'release_v18.0.0' of github.com:Clinical-Genomics/BALSAMIC into release_v18.0.0
2 parents bc34cdb + 9843599 commit dfd1748

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

BALSAMIC/assets/scripts/collect_qc_metrics.py

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def collect_qc_metrics(
7777
)
7878

7979

80-
def get_multiqc_data_source(multiqc_data: dict, sample: str, tool: str) -> str:
80+
def get_multiqc_data_source(multiqc_data: dict, sampleid: str, tool: str) -> str:
8181
"""Extracts the metrics data source associated with a specific sample and tool
8282
8383
Args:
@@ -105,20 +105,13 @@ def get_multiqc_data_source(multiqc_data: dict, sample: str, tool: str) -> str:
105105
subtool_name[1].lower() in source_tool.lower()
106106
and subtool_name[2].lower() in source_subtool.lower()
107107
):
108-
try:
109-
return os.path.basename(
110-
multiqc_data["report_data_sources"][source_tool][
111-
source_subtool
112-
][sample]
113-
)
114-
except KeyError:
115-
# Deletes pair orientation information from the sample name (insertSize metrics)
116-
sample = sample.rsplit("_", 1)[0]
117-
return os.path.basename(
118-
multiqc_data["report_data_sources"][source_tool][
119-
source_subtool
120-
][sample]
121-
)
108+
source_dict = multiqc_data["report_data_sources"][source_tool][
109+
source_subtool
110+
]
111+
metric_file = next(
112+
(v for k, v in source_dict.items() if sampleid in k), None
113+
)
114+
return os.path.basename(metric_file)
122115

123116

124117
def get_sex_check_metrics(sex_prediction_path: str, config: dict) -> list:
@@ -265,7 +258,7 @@ def extract(data, output_metrics, multiqc_key=None, source=None):
265258
Metric(
266259
id=get_sample_id(multiqc_key),
267260
input=get_multiqc_data_source(
268-
multiqc_data, multiqc_key, source
261+
multiqc_data, get_sample_id(multiqc_key), source
269262
),
270263
name=k,
271264
step=source,

BALSAMIC/constants/workflow_profile/config.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ set-resources:
126126
vardict_tumor_only:
127127
runtime: 280
128128
mem_mb: min(230000, 20000 * attempt)
129+
vardict_move_svs:
130+
runtime: 280
131+
mem_mb: min(230000, 5000 * attempt)
129132
sentieon_tnscope_tga_tumor_only:
130133
runtime: 280
131134
mem_mb: min(230000, 20000 * attempt)
@@ -448,13 +451,13 @@ set-resources:
448451
mem_mb: min(230000, 30000 * attempt)
449452
sentieon_align_sort:
450453
runtime: 1440
451-
mem_mb: min(230000, 15000 * attempt)
454+
mem_mb: min(230000, 30000 * attempt)
452455
sentieon_realign:
453456
runtime: 1440
454457
mem_mb: min(230000, 80000 * attempt)
455458
sentieon_align_sort_umireads:
456459
runtime: 1440
457-
mem_mb: min(230000, 15000 * attempt)
460+
mem_mb: min(230000, 22000 * attempt)
458461
cap_base_quality:
459462
mem_mb: min(230000, 10000 * attempt)
460463
runtime: 300
@@ -463,12 +466,12 @@ set-resources:
463466
mem_mb: min(230000, 80000 * attempt)
464467
sentieon_dedup_consensus:
465468
runtime: 1440
466-
mem_mb: min(230000, 20000 * attempt)
469+
mem_mb: min(230000, 30000 * attempt)
467470
sentieon_base_calibration:
468471
mem_mb: min(230000, 25000 * attempt)
469472
runtime: 1440
470473
samtools_fixmate:
471-
mem_mb: min(230000, 40000 * attempt)
474+
mem_mb: min(230000, 50000 * attempt)
472475
runtime: 560
473476
bam_compress_tumor:
474477
mem_mb: min(230000, 8000 * attempt)
@@ -494,8 +497,12 @@ set-resources:
494497
samtools_merge_bamfiles:
495498
mem_mb: min(230000, 70000 * attempt)
496499
runtime: 800
500+
create_final_vcf_namemap:
501+
mem_mb: min(230000, 2000 * attempt)
502+
runtime: 800
497503

498504
set-threads:
505+
create_final_vcf_namemap: 2
499506
post_process_tnscope_info_fields_wgs: 1
500507
post_process_tnscope_info_fields_tga: 1
501508
tnscope_sort: 1
@@ -534,6 +541,7 @@ set-threads:
534541
sentieon_tnscope_tga_tumor_normal: 16
535542
post_process_vardict: 2
536543
vardict_tumor_only: 16
544+
vardict_move_svs: 2
537545
sentieon_tnscope_tga_tumor_only: 16
538546
bcftools_quality_filter_TNscope_umi_tumor_only: 8
539547
bcftools_quality_filter_TNscope_umi_tumor_normal: 8

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Removed:
4242
Fixed:
4343
^^^^^^
4444
* Fixed varcall_py27 container for Manta https://github.com/Clinical-Genomics/BALSAMIC/pull/1567
45+
* qc metrics script bug https://github.com/Clinical-Genomics/BALSAMIC/pull/1615
4546

4647

4748
[17.1.0]

0 commit comments

Comments
 (0)