ChromAssist is an interactive workspace for exploring chromatin accessibility, histone marks, and nucleosome structure. Visualize genomic tracks, find experimental datasets in ENCODE, and inspect structural context alongside regional signal summaries.
The included signals are synthetic. The packing view is an educational illustration, not a physical simulation or a prediction of chromatin state.
Requires Node.js 22 or newer and npm. No API key, Python service, or Blender installation is required for the main workspace.
Windows: double-click Start ChromAssist.cmd. It installs dependencies on first use and starts the local server. Open the address below once the terminal says Ready. Keep that terminal open while using the app. In PowerShell, use npm.cmd if npm triggers an execution-policy error.
npm ci
npm run devOpen http://127.0.0.1:3000. For a production build:
npm run build
npm startThe default demo, local interval imports, region summaries, and chromatin array work without external services after installation. The atomic viewer uses a bundled experimental structure and requires WebGL. IGV reference genomes, remote BigWigs, ENCODE search, and GEO discovery require internet access.
- If
nodeornpmis not found, install Node.js 22 or newer with npm and reopen your terminal. - If PowerShell blocks
npm.ps1, usenpm.cmdinstead ofnpm. - If port 3000 is already in use, open the existing app at that address or stop its terminal with Ctrl+C before launching another copy.
- The first development page load can take a little time to compile. Wait for the terminal to finish; later loads are faster.
- If dependencies are incomplete, stop the server and run
npm.cmd ciagain.
- Dismissible quick-start panel, downloadable example tracks, and a mobile track manager for visibility, removal, and demo reset.
- Four deterministic demo tracks near the human HBB locus: H3K4me3, H3K27ac, H3K27me3, and ATAC.
- Coordinate search, pan, zoom, locus presets, per-track visibility and removal.
- Local BED and bedGraph import, overlap-aware plotting, and quantitative region summaries.
- ENCODE search for released BigWigs by mark, biosample and assembly, with source metadata and one-click addition to IGV.
- IGV.js browser with bidirectional locus synchronization and local / remote tracks.
- Interactive, draggable six-nucleosome illustration with manual packing and tail-site indicators.
- Mol* atomic viewer using bundled PDB 1KX5; selecting a histone mark highlights modeled H3 K4 or K27 sites in author chains A and E.
- Versioned session JSON import / export, including local data; CSV summary export.
- Optional FastAPI service for BED/bedGraph analysis, GEO study search, and uploaded BigWig summary / binning.
- Optional Blender 4.x scene generator with an open → compact → open animation.
- Unit tests, browser tests, Docker configuration, and GitHub Actions.
Supported assemblies are GRCh38 and mm10. Switching assembly clears tracks. Imported files must already use the selected assembly; there is no lift-over.
Click Add track in the sidebar (the + button on mobile).
| Format | Interpretation | Limits |
|---|---|---|
| BED | Interval coverage; each feature has value 1. Score column is ignored. | 8 MB / 50,000 intervals |
| bedGraph | Quantitative fourth-column signal, including negative values. Overlapping intervals are rejected. | 8 MB / 50,000 intervals |
| Hosted BigWig | Public HTTPS URL loaded directly by IGV. Requires CORS and HTTP range support. | Browser / host dependent |
| Session JSON | Restores assembly, region, tracks, selected mark and packing. | 10 MB / 32 tracks / 100,000 local intervals total |
Example files are in public/data. Chromosome names must begin with chr.
The search bar uses 1-based inclusive coordinates; files and APIs use 0-based half-open coordinates. For example, UI chr1:1-10 refers to file interval chr1 0 10.
Export a session before closing the page: there is no automatic persistent storage. Remote files remain remote URLs in saved sessions; exports do not download them. Local files are parsed in the browser and are not uploaded by the UI.
Each signal track has its own scale. The app does not normalize across assays, call peaks, classify chromatin state, or estimate transcription from histone marks.
The summary mean weights each overlapping interval by its clipped overlap length. Gaps are excluded from the mean. Coverage uses the union of overlapping intervals; BED features contribute separately to the mean and have value 1. The maximum uses the values of intervals overlapping the region. Remote BigWigs are excluded from browser-side numerical summaries. Their optional API summaries exclude missing bases.
The 3D array uses schematic geometry. Its packing slider is independent of experimental signals. Colored schematic dots identify H3 tail-site context. The atomic view is an experimental Xenopus laevis nucleosome structure; selecting a lysine does not imply that the crystallized residue carries the chosen modification. Unresolved residues cannot be selected. Neither view is mapped to the genomic region.
See docs/METHODS.md for formulas and provenance.
Requires Python 3.12 or newer. From the repository root:
python -m venv .venv
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# macOS / Linux:
# source .venv/bin/activate
python -m pip install -r backend/requirements.txt
python -m uvicorn backend.main:app --host 127.0.0.1 --port 8000Interactive API documentation: http://127.0.0.1:8000/docs.
The frontend proxies selected backend endpoints through /api/backend/* using BACKEND_URL (default: http://127.0.0.1:8000). Copy .env.example to .env.local if you want to change it. The main browser UI does not require this service.
For binary BigWig processing on Linux / WSL:
python -m pip install -r backend/requirements-bigwig.txtThe BigWig endpoint accepts an uploaded binary body, not an arbitrary server path or remote URL. See docs/API.md for examples. Native Windows pyBigWig availability depends on wheel / build support; use WSL or Docker if needed.
npm run typecheck
npm test
npm run build
npx playwright install chromium
npm run test:e2e
python -m pip install -r backend/requirements-dev.txt
python -m pytest backend/tests -qTo use an already-installed Chrome instead of downloading Playwright's Chromium, set PLAYWRIGHT_CHANNEL=chrome. ENCODE browser tests use fixtures so CI is independent of external availability. Live external checks are described in docs/VALIDATION.md.
With Docker Desktop or Docker Engine installed:
docker compose up --buildOpen http://localhost:3000. The optional API docs are at http://127.0.0.1:8000/docs. The backend container includes pyBigWig. These containers are intended for a local demonstration; configure access controls and upstream request limits before running a shared public service.
Blender is optional and separate from the browser array:
blender --background --python scripts/blender_nucleosome.py -- --output chromatin.blend --render chromatin.pngThe script creates eight histone subunits per nucleosome and two schematic DNA strands. Frames 1, 120 and 240 represent open, compact and open packing. It replaces only its own ChromatinAssistant collection in an existing scene. Geometry is illustrative, not atomistic. Blender is not launched by the web app.
app/ Next.js App Router, styles, same-origin API routes
components/ Workspace, local track plots, IGV, structure, dialogs
lib/ Data model, validation, interval calculations, ENCODE normalization
public/data/ Synthetic examples and bundled experimental 1KX5 mmCIF
public/molecule.html Isolated Mol* viewer with H3-site selection
backend/ Optional FastAPI analysis and GEO endpoints
scripts/ Local viewer asset preparation and Blender scene generation
tests/ TypeScript unit and Playwright browser tests
docs/ Methods, API usage and validation record
Viewer bundles are copied from installed npm packages during npm ci; no CDN scripts are executed. Heavy viewers and dialogs load on demand. The application uses Babel for JavaScript compilation. The exact npm dependency graph is locked in package-lock.json; a PostCSS override pins the patched version used by Next.js.
Application code is MIT licensed; see LICENSE. Third-party software retains its own licenses; see THIRD_PARTY_NOTICES.md.
Scientific references: ENCODE API, PDB 1KX5, Davey et al., 2002, Kouzarides, 2007, and Buenrostro et al., 2013.
