Spaces:
Running
Running
Commit History
-
§4 Species: anchor prompt to 2nd exon, drop zebrafish
- fetch_species.py: also capture per-species exon coords from Ensembl, translated into 0-based offsets in the trimmed seq - species.js: new getPromptWindow() — anchors prefixEnd 35 bp into the 2nd exon (like §1's gene completion); slides prefixStart back by the user-selected prefixLen; falls back to flat slice when exon 2 isn't visible. Always render the prompt (no more "click run all" placeholder). Per-row "{N} bp prompt" note. - species.json: regenerated with exon data; zebrafish dropped (~450 My drift made the row look like noise next to mammals + bird) - demo.html §4 lede/takeaway: reflect new framing and dropped species2c5ccd8
-
Add tabbed Demo / Model / Sandbox page (default = Sandbox)
New /demo route serves a single-page app with three tabs: - Demo: 4 interactive sections (gene completion, VEP, likelihood track, cross-species) plus folding/UMAP placeholders - Model: tokenizer, training objective (CE→FNS), data, architecture - Sandbox: the existing DNA continuation playground (default tab) Server-side: new /score endpoint (echo-logprobs), /genes /variants /species data routes, /img static mount, and left-padding for prompts that aren't a multiple of 6 bases (avoids phantom-A artifacts at the prompt boundary). Includes data fetchers (Ensembl REST) for genes / variants / species and a precompute script that bakes per-token logprobs and ref-vs-alt window scores into the JSON files so the page renders instantly without round-tripping the inference endpoint on first paint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>971b586