Skip to content

Repository files navigation

ABR2synapse

Code and data release for ABR-to-synapse modeling (Liberman and Brad cohorts). Supports Mode A (Zenodo cache → manuscript figures) and Mode B (raw waveforms → full retrain).

Quickstart (Mode A)

cd ABR2synapse
python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt

# Install Zenodo bundle (see DATA.md)
python scripts/fetch_zenodo_data.py --path ../zenodo-data

# Export figures and tables under figures/paper/ and tables/
python scripts/export_paper.py

Verify the release:

PYTHONPATH=. python scripts/verify_release.py --smoke --mode-a --mode-b --publish

Notebooks (Mode B)

Notebook Description
01_cohort_summary.ipynb Cohort tables (Tables 1–2, Supp. 3)
02_stage1_noise_classification.ipynb Stage-1 wide noise classifier
03_stage2_within_cohort.ipynb Stage-2 within-cohort RF / XGB
04_stage2_hp_tuning.ipynb Stage-2 hyperparameter search
05_stage2_synthesis_cv.ipynb Stage-2 synthesis cross-validation
06_univariate_eda.ipynb Univariate EDA (Fig. 4)
07_interpretability_shap.ipynb SHAP interpretability (Figs 6–8, Table 6)

Run from the repo root with PYTHONPATH=. or after pip install -e . if you add packaging later.

Documentation

Gates

Gate Command
G0 ABRA peak parity python scripts/abra_peak_parity.py
G1 smoke python scripts/verify_release.py --smoke
G2 Mode A manifest python scripts/verify_release.py --mode-a
G3 Mode B SHAP cache python scripts/verify_release.py --mode-b
SP5 publish files python scripts/verify_release.py --publish

License

MIT for code — see LICENSE. Data license is stated on the Zenodo deposit.

Citation

See CITATION.cff. Fill Zenodo DOI and GitHub URL before public release.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages