Spaces:
Running
Running
Commit History
-
Add §7 species tree, slim down §6 UMAP, mount /experiments
§7 · Species tree (Carbon-derived phylogeny) - scripts/build_species_tree.py derives a 27-species tree from Carbon-3B mean embeddings: per-species centroid distance matrix + Ward/UPGMA linkage + precomputed dendrogram layout. Output ships as data/species_tree.json (32 KB), served by new /species_tree endpoint. - demo.html gains a §7 section rendering the dendrogram as an SVG spine on the left and aligned rows on the right, with linkage + scope toggles and an "agreement vs NCBI" headline score. - scripts/render_tree_{mockups,mockups_v2,d_plus}.py: offline PNG mockups used during the §7 design review. §6 · UMAP refinements - Drop pos_3d from data/umap.bin. v1 only renders the 2D scatter and the frontend already skipped pos_3d on parse, so the int16×3 coords were 3.3 MB of dead bandwidth per visit. New WRITE_POS_3D toggle in build_real_umap.py for an easy re-enable. Wire payload 6.24 → 3.09 MB gzipped (~−50%). - New /umap_names endpoint serving the lazy-loaded per-poi…1f90847 -
§6 UMAP: integrate Dana's real Carbon 3B embeddings
Replace the synthetic 500K-point fixture with 571,810 real Carbon 3B sequence embeddings projected to 2D with UMAP, covering 27 species across six kingdoms (vertebrates, invertebrates, plants, fungi, bacteria, viruses). Includes per-point species, biotype, strand, and gc_content metadata. scripts/build_real_umap.py reads viz.csv from Dana's HuggingFace bucket (carbon_dana_embeddings_middle), quantizes coordinates to int16 and categorical metadata to uint8, packs everything into a compact binary header + payload (~5.8 MB gzipped, served via /umap and /umap_labels). Co-authored-by: Cursor <cursoragent@cursor.com>5c11b40