Skip to content

v2.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Oct 22:17
· 424 commits to main since this release
2e45e29

Added

  • On-demand gene loading and the 8-gene picker. milume.peek(adata) opens with gene names only; the browser fetches a gene's normalized sparse column from the kernel the first time it is coloured, then keeps it in an LRU cache (128 MiB). On a 170,057-cell × 18,028-gene matrix at 10% density (Atera WTA breast scale), the kernel's peak extra memory from construct through comm-open drops from about 9.6 GiB (2.0.0, extrapolated from 0.96 GiB and 1.88 GiB measured at 1/10 and 1/5 of the cells) to 77 MiB measured at full scale, and the gene part of the comm-open message drops from about 3.1 GiB to 0.3 MiB. The 2.0.0 path OOM-killed the Jupyter kernel on that dataset. genes=[...] still restricts the catalog and preloads it when it packs under 64 MiB; a larger list loads on demand with a UserWarning. Pick up to 8 genes: up to three blend one colour channel each; four or more colour by one combined value with Mean / Median / Max under the gene field. Fetching a gene from CSR adata.X binary-searches each cell's sorted column indices (about 47 ms vs 545 ms per gene on that matrix; #241, #248, #253).
  • The use-milume skill. One-line install via npx skills add ckmah/milume --skill use-milume, python -m milume.skill install (copies the version-matched file from the wheel into .agents/skills/use-milume/SKILL.md), or the Claude Code marketplace (/plugin marketplace add ckmah/milume, then use-milume@milume). .claude-plugin/plugin.json exposes only that skill; keep its version in sync with milume.__version__ when releasing (#338).

Fixed

  • The Inspect (I) shortcut works with the pointer over the map (#364, #362).
  • molab demo notebooks include explicit "click Run all" guidance (#366, #361).
  • Vertex-only lasso and polygon selections populate Measure category counts instead of "No category counts in this scope" (#371, #370).
  • Pressing Escape in the Explore genes picker only closes the popup; it no longer clears every picked gene when the popup was already closed (#252).
  • On Python 3.14, uv add milume with matplotlib>=3.11.2 no longer fails building ancient s3fs 0.3.5; declare s3fs>=2024.1 (#350).

Changed

  • Lighter core install. matplotlib, polars, and leidenalg (and igraph with it) are no longer installed by pip install milume. Category columns use pandas categorical codes (same labels, order, and colours); lasso hit-testing uses a numpy port of matplotlib's point-in-path test. Tab10/tab20 palettes are hardcoded with the same hex values. Demo notebooks and the Squidpy niche recipe still need leidenalg where they call sc.tl.leiden.
  • Dependency floors. spatialdata>=0.7.3 (>=0.8.0 on Python 3.12+ so anndata 0.13 cannot pair with broken 0.7.3). pyarrow>=16 is declared for cell-polygon parquet. s3fs>=2024.1 on Python 3.14.
  • Smaller sdist. The source distribution no longer ships website/, README screenshots, Playwright snapshots, or vendored .agents/ / .cursor/ config (~60 MB to ~4.3 MB). Wheel contents unchanged.
  • Minified widget bundle. milume/static/bundled/landmarks.mjs ships minified (5.17 → 3.99 MB raw; 1.41 → 1.24 MB gzip) (#318).
  • Inspect contrast default. When contrast_limits is omitted, the upper limit is the max of the coarsest pyramid level instead of the 99.5th percentile (colon A2 default goes from (0, 171) to (0, 249)).

Removed

  • The milume[demo] pip extra. Use each demo notebook's PEP 723 inline script header, or uv sync --group demo from a checkout.
  • Internal synced traits gene_format and gene_values (not documented public API). With genes=None nothing is preloaded; preloaded genes=[...] always ships sparse CSC via gene_csc_* traits. The catalogue trait gene_columns is renamed gene_names with no alias (internal, not in the notebook API).

Docs

  • Squidpy colour recipes, Diátaxis restructure (how-to, tutorials, reference), Datasets and Concepts pages, and demo-tier loader notes (#343, #354, #339).

Full Changelog: v2.0.0...v2.1.0