This repository contains the notebooks, simulation scripts, and figure exports used to generate ASWIFT manuscript figures. Its purpose is transparency and reproducibility: each figure notebook is kept with the data-processing and simulation code used to produce it.
The main ASWIFT software repository is available at Soh-Lab/aswift.
Set up Python 3.12 and install a C++ compiler.
Install requirements:
pip install -r requirements.txtPrimary figure notebooks live in figures/figure1.ipynb through
figures/figure5.ipynb. Supporting information notebooks live in
figures/SI_1.ipynb onward.
Rendered outputs are collected in figures/figure_exports/.
To extract peaks and generate JSON/CSV outputs, edit
peak_extraction/config/example_config.toml, then run:
python -m peak_extraction.app -c peak_extraction/config/example_config.toml --saveTo visualize individual fits:
streamlit run analysis/fit_visualization.py "peak_extraction/config/example_config.toml"Use a different config path in the command when needed.
Run one simulation config directly:
python -m simulation.simul_app -c simulation/simulation_config/simul_config.toml --saveRun the manuscript simulation and statistics workflow:
python -m simulation.workflow -c simulation/workflow_config/paper_simulations.tomlTo recompute only the statistics from existing simulation outputs:
python -m simulation.workflow -c simulation/workflow_config/paper_simulations.toml --skip-simulationsThe binding-curve summary uses kind = "peak" in the workflow config; all other
configured summaries use peak-height error statistics.
If you use ASWIFT in your research, please cite:
Yates, M., Ji, J., Yee, S., & Soh, H. T. (2026). Robust Regularization Enables Automated, Real-Time Square-Wave Voltammetry Signal Quantification. bioRxiv. https://doi.org/10.64898/2026.07.25.740173
Machine-readable citation metadata is available in the main ASWIFT repository's
CITATION.cff.