Skip to content
BioVisForgePublic

About

Interactive visualization of TFOpt run bundles. Reads the versioned bundle format in the browser.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tfopt-vis

Download: the single file tfopt-vis-<version>.html from the latest release (open it from disk; no server, no network). Demo: https://biovisforge.github.io/tfopt-vis/ (TFOpt's synthetic example).

tfopt-vis is an offline, single-file viewer for TFOpt run bundles: transcription-factor–mRNA regulation optimisation (TF activities from protein, mRNA and phosphosite series, α/β weights, regulator contributions, TF knockouts). It is the architectural twin of kinopt-vis (itself built from phoskintime-vis): same framework, structure, UI, layout, exports and tests, so the viewers feel like one family. Only the data logic and the plots are TFOpt's.

How it fits together

TFOpt run  ──▶  run bundle (<run>.tfopt/ or <run>.tfopt.zip)  ──▶  tfopt-vis (in the browser, offline)
                      manifest.json + tables/*.parquet + arrays/*.npy + provenance/ + resim/
  • Producer: TFOpt writes the run bundle.
  • Contract: the bundle is validated against contracts/tfopt/1.0/ (manifest.schema.json, tables.json), vendored unchanged from TFOpt's v0.2.0 release tag. Null means missing, never 0.
  • Stack (as kinopt-vis): Svelte 5, SveltePlot, Vite; built into one offline HTML file; ajv (schema validation), fflate (zip), hyparquet (Parquet), jsPDF + svg2pdf.js (vector PDF).

Features

  • Verification before opening (sha256, sizes, contract columns, dtypes, nullability); a failing bundle is refused, with an explicit "Open unverified".
  • 52 panels in eight sections (Inputs & coverage, Fit quality, TF activities, α / β weights, Contributions & knockouts, Network, Starts & identifiability, Diagnostics), covering every figure TFOpt's package and fit analysis draw (plotting audit), plus new ones: which series each TF uses and how input1 is taken at the RNA times, per-target R², β splits set by the regulariser rather than the data, KKT per start, negative predictions.
  • The TFOpt model recomputed in the browser, parity-tested against TFOpt 0.2.0 (every table within 1e-12): what-if α / β edits, TF knockouts, other starts, transforms.
  • Run comparison, exports (PNG, SVG, PDF, CSV, TikZ) with provenance, themes, command palette, keyboard access.
  • LaTeX-ready TikZ / PGFPlots export of every plot panel.

Docs: user guide, run bundles, TikZ export; design: mapping, plotting audit.

Develop

npm ci
npm run build:single      # dist-single/index.html: open it from disk, no server, no network
npm run dev               # development server
npm test                  # unit tests (vitest)
npm run test:parity       # the in-browser model against TFOpt's own output
npm run build             # Pages build with the demo bundles (dist/)
npm run test:e2e          # Playwright, Chromium + Firefox, against the single file and the Pages build (build both first)
npm run test:tikz         # after the e2e TikZ export: compile every panel with pdflatex and lualatex
npm run lint && npm run check

Test fixtures are written by TFOpt itself on its synthetic example (no real data): pip install -r tests/requirements-fixtures.txt && python tests/fixtures/make_fixtures.py (see tests/fixtures/SOURCE.md); the what-if reference by TFOpt's own analysis functions: python tests/reference/compute_reference.py. Code adapted from kinopt-vis is listed in NOTICE.

Contributing

See CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md. Questions: SUPPORT.md.

Citation

See CITATION.cff.

License

BSD-3-Clause, see LICENSE.

About

Interactive visualization of TFOpt run bundles. Reads the versioned bundle format in the browser.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages