hemispec-toolkit 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hemispec/__init__.py +100 -0
- hemispec/__main__.py +5 -0
- hemispec/api.py +637 -0
- hemispec/cli.py +604 -0
- hemispec/compute.py +142 -0
- hemispec/dgn_inference.py +141 -0
- hemispec/dgn_model.py +110 -0
- hemispec/gui.py +1031 -0
- hemispec/hemisphere_classifier.py +425 -0
- hemispec/io.py +101 -0
- hemispec/model_assets.py +206 -0
- hemispec/paths.py +302 -0
- hemispec/plots.py +48 -0
- hemispec/py.typed +0 -0
- hemispec/quickstart.py +115 -0
- hemispec/reports.py +46 -0
- hemispec/resources/preprocess/process_single_subject_GM_v2_reorient.sh +80 -0
- hemispec/roi.py +145 -0
- hemispec/similarity.py +254 -0
- hemispec/workflow.py +496 -0
- hemispec_toolkit-0.1.0.dist-info/METADATA +166 -0
- hemispec_toolkit-0.1.0.dist-info/RECORD +26 -0
- hemispec_toolkit-0.1.0.dist-info/WHEEL +5 -0
- hemispec_toolkit-0.1.0.dist-info/entry_points.txt +3 -0
- hemispec_toolkit-0.1.0.dist-info/licenses/LICENSE +21 -0
- hemispec_toolkit-0.1.0.dist-info/top_level.txt +1 -0
hemispec/__init__.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"""ANS/RNS computation and validation toolkit."""
|
|
2
|
+
|
|
3
|
+
from .api import (
|
|
4
|
+
DGNInferenceConfig,
|
|
5
|
+
DGNModelBundle,
|
|
6
|
+
HemisphereClassificationConfig,
|
|
7
|
+
HemisphereClassificationResult,
|
|
8
|
+
MetricComputeConfig,
|
|
9
|
+
MetricComputeResult,
|
|
10
|
+
PipelineRunConfig,
|
|
11
|
+
PipelineRunResult,
|
|
12
|
+
PreprocessingSpec,
|
|
13
|
+
ValidationConfig,
|
|
14
|
+
ValidationRunResult,
|
|
15
|
+
ValidationSummaryRow,
|
|
16
|
+
compute_ans_rns_arrays,
|
|
17
|
+
compute_metrics,
|
|
18
|
+
default_classifier_output_path,
|
|
19
|
+
default_input_glob,
|
|
20
|
+
default_trt_output_path,
|
|
21
|
+
discover_local_dgn_bundles,
|
|
22
|
+
get_preprocessing_spec,
|
|
23
|
+
infer_dgn_direction_from_path,
|
|
24
|
+
normalize_dgn_direction,
|
|
25
|
+
resolve_classifier_model_dir,
|
|
26
|
+
resolve_dgn_model_root,
|
|
27
|
+
resolve_glasser_atlas_path,
|
|
28
|
+
resolve_glasser_label_table,
|
|
29
|
+
resolve_validation_hemis,
|
|
30
|
+
run_dgn_inference,
|
|
31
|
+
run_pipeline,
|
|
32
|
+
target_hemisphere_for_direction,
|
|
33
|
+
validate_hemisphere_classification,
|
|
34
|
+
validate_reliability,
|
|
35
|
+
validate_specificity,
|
|
36
|
+
)
|
|
37
|
+
from .model_assets import (
|
|
38
|
+
ensure_default_classifier_models,
|
|
39
|
+
ensure_default_dgn_models,
|
|
40
|
+
ensure_default_model_assets,
|
|
41
|
+
)
|
|
42
|
+
from .quickstart import make_synthetic_quickstart_inputs, run_synthetic_quickstart
|
|
43
|
+
from .roi import RoiSummaryConfig, summarize_maps_by_atlas
|
|
44
|
+
from .workflow import (
|
|
45
|
+
BilateralWorkflowConfig,
|
|
46
|
+
BilateralWorkflowResult,
|
|
47
|
+
run_bilateral_workflow,
|
|
48
|
+
summarize_bilateral_roi_features,
|
|
49
|
+
summarize_subject_metrics,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
__version__ = "0.1.0"
|
|
53
|
+
|
|
54
|
+
__all__ = [
|
|
55
|
+
"__version__",
|
|
56
|
+
"DGNInferenceConfig",
|
|
57
|
+
"BilateralWorkflowConfig",
|
|
58
|
+
"BilateralWorkflowResult",
|
|
59
|
+
"DGNModelBundle",
|
|
60
|
+
"HemisphereClassificationConfig",
|
|
61
|
+
"HemisphereClassificationResult",
|
|
62
|
+
"MetricComputeConfig",
|
|
63
|
+
"MetricComputeResult",
|
|
64
|
+
"PipelineRunConfig",
|
|
65
|
+
"PipelineRunResult",
|
|
66
|
+
"PreprocessingSpec",
|
|
67
|
+
"RoiSummaryConfig",
|
|
68
|
+
"ValidationConfig",
|
|
69
|
+
"ValidationRunResult",
|
|
70
|
+
"ValidationSummaryRow",
|
|
71
|
+
"compute_ans_rns_arrays",
|
|
72
|
+
"compute_metrics",
|
|
73
|
+
"default_classifier_output_path",
|
|
74
|
+
"default_input_glob",
|
|
75
|
+
"default_trt_output_path",
|
|
76
|
+
"discover_local_dgn_bundles",
|
|
77
|
+
"ensure_default_classifier_models",
|
|
78
|
+
"ensure_default_dgn_models",
|
|
79
|
+
"ensure_default_model_assets",
|
|
80
|
+
"get_preprocessing_spec",
|
|
81
|
+
"infer_dgn_direction_from_path",
|
|
82
|
+
"normalize_dgn_direction",
|
|
83
|
+
"resolve_classifier_model_dir",
|
|
84
|
+
"resolve_dgn_model_root",
|
|
85
|
+
"resolve_glasser_atlas_path",
|
|
86
|
+
"resolve_glasser_label_table",
|
|
87
|
+
"resolve_validation_hemis",
|
|
88
|
+
"make_synthetic_quickstart_inputs",
|
|
89
|
+
"run_dgn_inference",
|
|
90
|
+
"run_bilateral_workflow",
|
|
91
|
+
"run_pipeline",
|
|
92
|
+
"run_synthetic_quickstart",
|
|
93
|
+
"target_hemisphere_for_direction",
|
|
94
|
+
"validate_reliability",
|
|
95
|
+
"validate_hemisphere_classification",
|
|
96
|
+
"validate_specificity",
|
|
97
|
+
"summarize_maps_by_atlas",
|
|
98
|
+
"summarize_bilateral_roi_features",
|
|
99
|
+
"summarize_subject_metrics",
|
|
100
|
+
]
|