Skip to content

Commit 86ed2c1

Browse files
committed
enh: improved graphs in reports
1 parent e5110ad commit 86ed2c1

11 files changed

Lines changed: 1273 additions & 509 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies = [
2727
"pydantic>=2.0",
2828
"pyqtgraph>=0.14.0",
2929
"pyside6>=6.11.0",
30+
"matplotlib>=3.5",
3031
]
3132

3233
[dependency-groups]

src/clinical_dbs_annotator/config/clinical_presets.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"Dystonia": [
3-
"BFMDRS",
4-
"TWSTRS"
5-
],
6-
"ET": [
7-
"FTM-TRS",
8-
"TETRAS"
9-
],
10-
"MDD": [
11-
"MADRS",
12-
"HAM-D",
13-
"BDI-II"
14-
],
152
"OCD": [
163
"Y-BOCS",
174
"Y-BOCS-o",
185
"Y-BOCS-c",
196
"MADRS",
207
"OCI-R"
218
],
9+
"MDD": [
10+
"MADRS",
11+
"HAM-D",
12+
"BDI-II"
13+
],
2214
"PD": [
2315
"MDS-UPDRS",
2416
"UPDRS-III",
2517
"PDQ-39",
2618
"UDysRS"
2719
],
20+
"ET": [
21+
"FTM-TRS",
22+
"TETRAS"
23+
],
24+
"Dystonia": [
25+
"BFMDRS",
26+
"TWSTRS"
27+
],
2828
"TS": [
2929
"YGTSS",
3030
"PUTS",

src/clinical_dbs_annotator/controllers/wizard_controller.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ def export_longitudinal_report(
679679
fmt: str,
680680
parent_widget=None,
681681
sections=None,
682+
clinical_scale_prefs: list | None = None,
682683
) -> None:
683684
"""
684685
Generate a longitudinal report combining data from multiple TSV files.
@@ -688,11 +689,14 @@ def export_longitudinal_report(
688689
scale_prefs: Scale optimization prefs [(name, min, max, mode, custom_value), ...]
689690
fmt: "word" or "pdf"
690691
parent_widget: Parent widget for dialogs
692+
sections: List of section keys to include
693+
clinical_scale_prefs: Clinical scale prefs, same format as scale_prefs
691694
"""
692695
from ..utils.longitudinal_exporter import LongitudinalExporter
693696

694697
exporter = LongitudinalExporter()
695698
exporter.set_scale_optimization_prefs(scale_prefs)
699+
exporter.set_clinical_scale_prefs(clinical_scale_prefs)
696700

697701
if fmt == "word":
698702
exporter.export_to_word(file_paths, parent_widget, sections=sections)

0 commit comments

Comments
 (0)