ROAP — Reproducible Ocean Acidification Pipeline
ROAP runs quality control and processing for discrete ocean acidification carbonate-chemistry data, working toward the Frontiers in Marine Science (2021) best-practice data standard. It takes a bench-sheet Excel workbook through TA reference-material and pH-standard QC, then through staged checks to an analysis-ready table with a PASS / REVIEW / FAIL verdict per sample. Every run writes a run bundle you can verify later.
Status
- Version:
2026.11.0, the first CalVer release (not yet on PyPI). Versions use CalVerYYYY.0M.MICRO; see CHANGELOG.md. - Install from a repository checkout. The pipeline runs notebooks and
run_pipeline.shfrom the repository, so the Pixi workflow below is the supported way to run it. The PyPI package (pip install roap) ships theroaplibrary and CLI, but not the notebooks or runner. Each merge tomainpublishes a dev build to TestPyPI, and a GitHub Release publishes to PyPI. - Not done yet:
roap validateis a stub that only reads the workbook (#19). GOA-ON export isn't implemented. A single in-process engine behind the CLI, GUI and shell is tracked in #43.
Quickstart
Install Pixi, then clone the repository and install the environment. Pixi manages Python 3.11 and every dependency.
git clone https://github.com/uw-ssec/roap.git
cd roap
pixi install
On Windows, run the pipeline from Git Bash, because run_pipeline.sh is a Bash
script.
1. Command line
pixi run pipeline examples/example_data.xlsx outputs/test
The final deliverable is
outputs/test/oa_stage4_outputs/data/analysis_ready.csv. Run
./run_pipeline.sh --help for options such as --config-dir, --start-from,
--no-parquet and --dry-run.
2. Desktop GUI
pixi run python tools/roap_app.py
The launcher pre-fills the example workbook and an output folder. Click Run pipeline and watch the progress log. Cancel stops the whole pipeline and warns that the partial outputs must not be used.
3. Notebooks
pixi run jupyter lab notebooks/
Start with quickstart.ipynb for a guided end-to-end run. To run stages by
hand, run the numbered notebooks in order. Each has a *_README.md next to it.
Pipeline Stages
run_pipeline.sh runs these notebooks with Papermill. Each stage reads the
previous stage's output.
| Notebook | Stage | Output folder | Purpose |
|---|---|---|---|
01_excel_viewer.ipynb |
Optional | oa_viewer_outputs/ |
Preview the input workbook (--include-viewer) |
02_ta_ph_qc.ipynb |
QC | oa_prelim_data__qc_outputs/ |
TA reference-material (CRM) QC and pH-standard QC |
03_qc_output_review.ipynb |
Optional | — | Review the QC outputs (--include-review) |
04_stage1a.ipynb |
1A | oa_stage1a_outputs/ |
Canonical schema and presence flags |
05_stage1b.ipynb |
1B | oa_stage1b_outputs/ |
Best-source analysis fields |
06_stage2.ipynb |
2 | oa_stage2_outputs/ |
Replicate harmonisation and duplicate checks |
07_stage3.ipynb |
3 | oa_stage3_outputs/ |
Carbonate-system integrity checks |
08_stage4.ipynb |
4 | oa_stage4_outputs/ |
Analysis audit and PASS / REVIEW / FAIL verdicts |
The logic lives in the roap package under src/roap/.
Configuration
Default configs live in configs/. run_pipeline.sh --config-dir DIR picks up
per-stage files named after the notebook (02_ta_ph_qc.yaml, 04_stage1a.yaml
… 08_stage4.yaml, or .yml / .json):
02_ta_ph_qc.yaml: TA and pH QC thresholds07_stage3.yaml: carbonate integrity, includingph_diag_harmonize_temperature08_stage4.yaml: audit thresholds
These shared files are also in configs/:
crm_certified_values.yaml: certified values per CRM batchschema_aliases.yaml: column alias mappingregional.yaml: regional partner overridescruise_grade_thresholds.yaml: cruise grading
The runner doesn't load regional.yaml or cruise_grade_thresholds.yaml on its
own. Configs declare a compatible_pipeline_version, and a run stops if the
installed version doesn't satisfy it.
Outputs and Run Bundles
outputs/<run>/
├── oa_prelim_data__qc_outputs/
├── oa_stage1a_outputs/
├── oa_stage1b_outputs/
├── oa_stage2_outputs/
├── oa_stage3_outputs/
└── oa_stage4_outputs/
├── data/analysis_ready.csv # final deliverable
├── reports/report.md # stages 1A–4 each write a report
└── run_bundle_manifest.json # each stage writes a manifest
runs/<timestamp>_pid<N>/
├── *.run.ipynb # executed notebooks
└── run_bundle_manifest.json # manifest for the whole run
A manifest records the SHA256 of the input, the configs and every output, plus package versions and the git commit. To check that nothing has changed since the run:
pixi run verify-bundle runs/<timestamp>_pid<N> # whole run
pixi run verify-bundle outputs/<run>/oa_stage4_outputs # one stage
It exits 0 when every file matches. Notebooks run by hand also write a manifest,
so a stage run without run_pipeline.sh can be verified the same way.
Expected Output (example data)
examples/example_data.xlsx is a synthetic workbook. Running the pipeline on it
gives these analysis_audit_status values in analysis_ready.csv:
- 20 samples: 16 PASS, 3 FAIL (injected bad rows) and 1 REVIEW (borderline)
- 7 reference rows: 4
CRM_QCand 3STD_QC
Troubleshooting
| Problem | Solution |
|---|---|
ModuleNotFoundError: roap |
Run pixi install from the repository root |
run_pipeline.sh: command not found |
Use Git Bash on Windows; run chmod +x run_pipeline.sh on Unix |
| GUI won't open | Run pixi install, then pixi run python tools/roap_app.py |
| Carbonate calculation fails | PyCO2SYS 1.x is required; pixi install provides it |
| Config version mismatch | Update compatible_pipeline_version in that config's YAML |
For Developers
pixi run test: the full test suite. Some tests need the prototype submodule:git submodule update --initpixi run pre-commit-all: formatting, spelling, workflow and secret-scanning hooks. Run it before every PRpixi run pytest tests/test_invariants.py -v: the invariant tests only- See CONTRIBUTING.md, and AI_POLICY.md for AI-assisted contributions
Citation
If you use ROAP in your research, please cite it. The citation metadata is in
CITATION.cff, and GitHub's "Cite this repository" button
generates APA and BibTeX from it.
Support
See SUPPORT.md for where to ask questions, report bugs and raise security concerns.
License
BSD 3-Clause. See LICENSE.
Metadata
Release files for roap 2026.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| roap-2026.11.0.tar.gz | 169.9 kB | With provenance | Details for roap-2026.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| roap-2026.11.0-py3-none-any.whl | Python 3 | none | any | Details for roap-2026.11.0-py3-none-any.whl |
Total release size: 293.7 kB
Release files / roap-2026.11.0.tar.gz
| Download URL | roap-2026.11.0.tar.gz |
|---|---|
| Size | 169.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e17ae6c23fcb166bf69f7d353716a1825f8ce46699ad026765d2e20c6e8f1ce
|
|
BLAKE2b-256 checksum How to use checksums |
8a65c4fa3e6731e064616eb12dbc68f94c4757ae6e441f3f0371e4359f4c5d65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / roap-2026.11.0-py3-none-any.whl
| Download URL | roap-2026.11.0-py3-none-any.whl |
|---|---|
| Size | 123.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aa56cdc2a3166b5a205d876ca211e23a91dc2fe89deeb03fc928edcff6c178c
|
|
BLAKE2b-256 checksum How to use checksums |
5e7aaa228628de23fc4be970e63dfd0372be83f985ddb0ba5ff6811953fca922
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for roap 2026.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for roap-2026.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.