ADOS-2 association (modern and legacy), per-electrode and per-zone spike and spindle densities, count reference for spike rates with its expected range; 0.3.0
This commit is contained in:
@@ -49,15 +49,30 @@ pipe.biomarker("posterior_rhythm").measure(study)
|
||||
table = pipe.map(paths, plan=DIRECTOR_CLUSTER, ages_months=ages,
|
||||
biomarkers=("posterior_rhythm", "spindles")) # Dask: LocalCluster, or scheduler=
|
||||
rhythm = pipe.biomarker("posterior_rhythm").train(table) # baseline: curves or age_blocks
|
||||
rhythm.predict(table.iloc[[0]]) # outside -1/0/+1, z
|
||||
rhythm.predict(table.iloc[[0]]) # outside -1/0/+1 (NaN: no reference), z
|
||||
|
||||
from tea.serving import log_plan, log_biomarker # MLflow models, privacy guard
|
||||
```
|
||||
|
||||
```python
|
||||
from tea.pipeline import registry
|
||||
assoc = registry.association("ados2_association").fit(cohort) # or impl="legacy"
|
||||
assoc.associations() # odds ratio per unit of z, interval, p, q; per pair
|
||||
assoc.score(cohort) # each child's probability of the outcome event
|
||||
```
|
||||
|
||||
Replace a module: `pipe.replace("spindle_detection", MyDetector())`, or register
|
||||
it under the same name in the `tea.modules` entry-point group. Check it
|
||||
with `tea.contracts.testing`.
|
||||
|
||||
## Associations
|
||||
|
||||
Cohort-level models of EEG findings against a clinical outcome run outside the per-study pipeline and register in
|
||||
`tea.associations` / `tea.legacy_associations`. `ados2_association` relates each zone's z (spike and spindle
|
||||
densities per scalp zone, `tea.contracts.ZONES`), the posterior rhythm's and the gradient's z with ADOS-2 items
|
||||
(Firth logistic) or the CSS (ordinal), adjusted for age and module; legacy is the research code vendored unchanged.
|
||||
The cohort's columns and the outputs are in `tea.associations.ados2.api` and `tea.contracts`.
|
||||
|
||||
## Install
|
||||
|
||||
Python ≥ 3.12. As a git submodule of another project:
|
||||
|
||||
Reference in New Issue
Block a user