Skip to content

About

Lighter, reagent-centric laboratory information management successor to the abandoned OpenFreezer (in progress)

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReagentVault

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.

Status at a glance

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.

Quick start

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/health

Expect 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 -q

The suite has 166 tests and all pass.

Documentation

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.

Known problems

These are verified against the running code. None is fixed yet.

  1. Nested delete ignores the parent id. A chemical or well can be deleted through the wrong reagent or container path (A1, A2).
  2. Bad input can return 500. A missing or non-integer row_num, col, rows, or cols raises an unhandled TypeError (A3).
  3. Development secret key is the default. Set REAGENTVAULT_SECRET_KEY before any non-development use (S3).
  4. No login rate limiting (S5).

Details and the remaining defects are in docs/api.md and docs/security.md.

Source material

  • 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, including Technical_Documentation.pdf, UNIX_install_instructions.pdf, and User_Guide.pdf (v3.2).
  • Biopython 1.88 for sequence routines and cross-checks.

Contributing

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.

About

Lighter, reagent-centric laboratory information management successor to the abandoned OpenFreezer (in progress)

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages