DoE tool for in-vitro transcription reaction optimization
Project description
Screenase — DoE tool for IVT reaction optimization
Plan a randomized 2^k full-factorial (or central-composite follow-up) DoE screen for in-vitro transcription reactions, assign wells on a 96-/384-well plate, print a bench-ready pipetting sheet, and analyze the resulting yields — all from a single CLI, a Streamlit web app, or a Benchling-App-shaped Python subpackage.
Live demo: screenase.streamlit.app — click Generate, download the bench sheet, upload a results CSV to see the Pareto.
docs/screenshots/cli_demo.gifshows the generate → bench sheet → analyze loop.
Why
Scientists optimizing in-vitro transcription yields typically plan screens by hand in a spreadsheet: pick factors, pick levels, randomize runs, compute pipetting volumes per well, print, pipette, measure, eyeball the effects. Each step is manual, every step is error-prone, and the bench sheet is usually a one-off file that doesn't round-trip back into analysis.
Screenase automates the whole loop: config.yaml → design + bench sheet HTML
→ (bench work) → responses CSV → OLS ranked effects + Pareto plot. The design
is deterministic given the config hash and seed, so an identical screen can be
rerun months later without hunting for the spreadsheet.
Quickstart
pip install -e '.[dev,ui]'
screenase generate --config examples/config.yaml --out-dir out/
open out/ivt_bench_sheet.html
Edit examples/config.yaml to change factors, levels, stocks, or center-point
count. The default reproduces a 4-factor IVT screen (NTPs, MgCl₂, T7, PEG8000).
After the bench run, fill in the response column in out/ivt_screen_coded.csv
and:
screenase analyze my_results.csv --response yield_ug_per_uL --out-dir out/
This writes out/pareto.png + out/analysis_report.md with ranked effects and
a center-point curvature test. If the curvature is significant at α = 0.05,
the report suggests a central-composite follow-up with the exact CLI invocation.
Plate layout
For screens that ship to a 96- or 384-well plate, pass --plate:
screenase generate --config examples/config.yaml --out-dir out/ --plate 96 --plate-layout column-major
This writes out/plate_layout.csv + out/plate_map.png and embeds the
plate-map table inside the bench sheet. Layout modes: column-major (default,
fills A1..H1, then A2..H2, ...), row-major (fills A1..A12, then B1..B12, ...),
or randomized (seeded shuffle, reproducible).
Central-composite follow-up
When the curvature test from screenase analyze rejects the main-effects model:
screenase generate --config examples/config.yaml --out-dir out-ccd/ --design ccd --alpha face
Emits a 2ᵏ factorial + 2k axial + N center CCD. --alpha face (default) keeps
axial setpoints within low/high; --alpha rotatable uses α = (2ᵏ)^(1/4) for
a rotatable design (only use this if your stocks allow the wider range).
Customizing factors
factors:
- name: NTPs_mM_each
low: 5
high: 10
unit: mM
reagent: NTPs
dosing: concentration
- name: T7_uL
low: 0.2
high: 1.2
unit: uL
reagent: T7
dosing: volume # volume-based dosing (factor value is already µL)
dosing: concentration triggers V = C_target · V_rxn / C_stock;
dosing: volume passes the factor value through as a pipetting volume.
Live demo
Try it in the browser: screenase.streamlit.app.
The hosted app wraps the same screenase package — two tabs:
- Generate screen: slider-edit factors, get CSV + rendered bench sheet + download buttons.
- Analyze results: upload the coded CSV with your yields filled in, get the Pareto + ranked-effects table.
Benchling integration
src/screenase/benchling/ shapes Screenase as a Benchling App: a manifest,
SDK-style webhook handlers, and entity mapping that converts the design /
results / inventory consumption into Benchling Request / Result / Entry /
Container-decrement payload shapes.
Handlers (runnable locally against fixtures, no live tenant needed):
handle_request_created— build the design + bench sheet, return the Request payload.handle_results_submitted— run OLS on submitted responses, return the Entry payload.handle_reagent_consumed— sum reagent pipetting, return a container-decrement payload.
Or from the CLI:
screenase generate --config examples/config.yaml --out-dir out/ \
--export benchling --export benchling-inventory --lot-refs lot_refs.json
- What runs locally: webhook handlers against fixture payloads
(
fixtures/*.json).python -c "from screenase.benchling.app import run_fixture; run_fixture('...')". - What doesn't: the live deployment. Benchling's Developer Platform is enterprise-gated; the shape is present, the tenant is the gap.
See docs/benchling_mapping.md for the full
semantics and src/screenase/benchling/README.md
for the subpackage structure.
Design rationale
Why 2⁴ + 3 center points? Why (f1 + f2 + f3 + f4)**2? Why randomize? See
docs/design_rationale.md.
Dev
pip install -e '.[dev,ui]'
pytest -q
ruff check src tests streamlit_app.py
mypy --ignore-missing-imports src/screenase
streamlit run streamlit_app.py
Python ≥ 3.11, CI covers 3.11 and 3.12 on Ubuntu.
Author
Ethan Arnold — emailtoethan@gmail.com. MIT-licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file screenase-0.7.0.tar.gz.
File metadata
- Download URL: screenase-0.7.0.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66c678a8d5f19e08875eb29b446e66077e38474a51418912bc48b29ccb0e3484
|
|
| MD5 |
a80cf46d96f920fa385cf5713bd07d80
|
|
| BLAKE2b-256 |
ae6aa134d4d90dad366d86e7b284aef4db34ec402cad774311cfea58d0647e61
|
Provenance
The following attestation bundles were made for screenase-0.7.0.tar.gz:
Publisher:
release.yml on ethanarnold/screenase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
screenase-0.7.0.tar.gz -
Subject digest:
66c678a8d5f19e08875eb29b446e66077e38474a51418912bc48b29ccb0e3484 - Sigstore transparency entry: 1351032538
- Sigstore integration time:
-
Permalink:
ethanarnold/screenase@cdc29b7f2c97d2317df888d4b6b9d7dc7aa938e6 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/ethanarnold
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cdc29b7f2c97d2317df888d4b6b9d7dc7aa938e6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file screenase-0.7.0-py3-none-any.whl.
File metadata
- Download URL: screenase-0.7.0-py3-none-any.whl
- Upload date:
- Size: 56.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c058f513f0cc69b75e2347bc47d34a82fa21a994f328a0ae08d91d342743462
|
|
| MD5 |
41a7dcf2f890b0f825e6882565d2d7d0
|
|
| BLAKE2b-256 |
a8fef41c8d7336de658ae3534c72bfba27ba7287799b424adbd3f9d5dbfb7df0
|
Provenance
The following attestation bundles were made for screenase-0.7.0-py3-none-any.whl:
Publisher:
release.yml on ethanarnold/screenase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
screenase-0.7.0-py3-none-any.whl -
Subject digest:
6c058f513f0cc69b75e2347bc47d34a82fa21a994f328a0ae08d91d342743462 - Sigstore transparency entry: 1351032700
- Sigstore integration time:
-
Permalink:
ethanarnold/screenase@cdc29b7f2c97d2317df888d4b6b9d7dc7aa938e6 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/ethanarnold
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cdc29b7f2c97d2317df888d4b6b9d7dc7aa938e6 -
Trigger Event:
push
-
Statement type: