ReagentVault is a planned successor to OpenFreezer, the reagent information management system described in Olhovsky et al., "OpenFreezer: a reagent information management software system," Nature Methods 8, 612–613 (2011), doi:10.1038/nmeth.1658. OpenFreezer was abandoned. ReagentVault is a lighter, reagent-centric rewrite that reuses OpenFreezer's domain logic where that logic is sound.
- Stack: Python 3.13, Flask 3, SQLite, Biopython 1.88.
- Interface: JSON API under
/api. No web frontend yet. - License: GNU General Public License v3.0. See
LICENSE. - Status: Early implementation. Not deployable. The API can be used for reagent, location, and authentication operations, but deployment security is incomplete. See below.
| Area | State |
|---|---|
| Application scaffold, configuration, health endpoint | Done |
| Reagent types, reagents, chemical safety records | CRUD done; defects in nested delete paths |
| Containers, wells, preps | CRUD done; defects in nested delete paths |
| Authentication (login, logout, session guard) | Done |
| CSRF protection | Done: token from GET /api/auth/csrf, sent in X-CSRFToken |
| User creation | Done: flask --app app create-user EMAIL |
| Login rate limiting, HTTPS, secure cookies | Not started |
| DNA calculations (GC, MW, Tm, reverse complement) | Ported with documented conventions |
| Translation and peptide mass | Partly ported; parity not yet tested |
| ORF scanning and frame report, splice ORFs, restriction analysis and map output, sequence features | Ported as pure functions in SequenceService; no API routes yet |
| LoxP recombination assembly, non-recombinant assembly (including degenerate sites) and hybrid assembly (optional linkers), insert translation | Ported as pure functions; degenerate hybrid sites, entry and expression vectors pending |
| Oligo map, sequencing primer mapping, GenBank and FASTA export content | Ported as pure functions; database wiring and the map drawing pending |
| Vector map drawing, degenerate hybrid sites | Not started |
| Docker and deployment | Not started |
| Frontend | Not started |
The full checklist of scientific ports is section 13 of the formal plan.
python3 -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt
flask --app app init-db
flask --app app create-user you@example.com
flask --app app run --port 5001
curl -i http://127.0.0.1:5001/api/healthExpect 200 with {"status":"ok"}.
To use the API from a client, follow the sequence in docs/api.md: fetch a
CSRF token, log in with it, then send the token from the login response on
each write.
Run the test suite with:
python3 -m pytest -qThe suite has 166 tests and all pass.
| Document | Contents |
|---|---|
| docs/architecture.md | Layers, directory layout, application factory, services, models, legacy mapping. |
| docs/api.md | Every endpoint with methods, bodies, status codes, the CSRF flow, and the known defects. |
| docs/configuration.md | Environment variables, database setup, creating users, running, testing, deployment status. |
| docs/security.md | Implemented controls, missing controls, current defects, legacy findings. |
| docs/science.md | Sequence calculations, their conventions, validation rules, verification, and gaps. |
| docs/development.md | Tests, adding features, the comment policy, git workflow, licensing. |
These are verified against the running code. None is fixed yet.
- Nested delete ignores the parent id. A chemical or well can be deleted through the wrong reagent or container path (A1, A2).
- Bad input can return
500. A missing or non-integerrow_num,col,rows, orcolsraises an unhandledTypeError(A3). - Development secret key is the default. Set
REAGENTVAULT_SECRET_KEYbefore any non-development use (S3). - No login rate limiting (S5).
Details and the remaining defects are in docs/api.md and docs/security.md.
- Olhovsky et al., Nature Methods 8, 612–613 (2011), doi:10.1038/nmeth.1658; supplementary material doi:10.1038/nmeth.1658.
- The OpenFreezer checkout at
/home/chris/bin/opencodeexperiments/OpenFreezer, includingTechnical_Documentation.pdf,UNIX_install_instructions.pdf, andUser_Guide.pdf(v3.2). - Biopython 1.88 for sequence routines and cross-checks.
See docs/development.md for the test conventions, the comment policy, and the
git workflow. The main rules are: keep secrets out of git, update the docs in
the same change as the behaviour, and do not force-push master.