Skip to content

R15.13 — Live Contact & Distance Maps via hic-straw

Latest

Choose a tag to compare

@turner turner released this 13 Mar 20:30
· 5 commits to main since this release
ebc164b

Live Map Integration

This release integrates hic-straw v2.2.0 and juicebox.js v3.2.0 to bring live contact map and distance map computation directly into Spacewalk. The previous web worker approach has been replaced by hic-straw's LiveContactMap API, which implements the HicFile interface — Juicebox.js renders live maps identically to static .hic files.

New Capabilities

  • Live contact maps computed in real time from 3D chromatin trace data, with binary and frequency contact modes
  • Live distance maps rendered alongside contact maps
  • Dynamic threshold adjustment — change the contact distance cutoff without recomputing the full distance matrix
  • Configurable neighbor exclusion to filter trivially proximal diagonal contacts
  • Shared color picker between live maps and static Hi-C maps
  • Spinner overlays provide visual feedback during live map computation
  • Stepper buttons on threshold and exclusion sliders for precise control

Architecture Changes

  • Removed liveContactMapWorker.js and liveDistanceMapWorker.js — web workers replaced by direct hic-straw API calls on the main thread
  • Added liveMapRenderUtils.js for shared canvas rendering logic
  • Redesigned live map tab layout with streamlined controls
  • Net: −2,454 lines removed, +1,312 lines added

Dependencies

Package Previous Current
hic-straw spacewalk-extensions branch v2.2.0
juicebox.js live-map branch v3.2.0

Bug Fixes

  • Fixed genome lookup to use genomeList instead of hardcoded fallback
  • Fixed navbar dropdown dismissal behavior