[Atlas] Cross-link wiki pages with hypotheses and analyses

← All Specs

[Atlas] Cross-link wiki pages with hypotheses and analyses

Task ID: f499da03-d155-429f-985c-79cb645d312c Layer: Atlas Priority: 85 Status: Complete

Problem

Many wiki pages mention entities that appear in hypotheses but lack explicit artifact_links. Additionally, 3 new SEA-AD v4 hypotheses were unregistered in the artifacts table, and the wiki page sidebar didn't display Related Experiments despite 31K+ existing experiment links.

Solution

  • Created crosslink_wiki_all.py — registers missing hypothesis artifacts and creates bidirectional artifact_links between wiki pages and hypotheses/experiments based on target_gene, disease, and pathway matching
  • Updated api.py wiki page route to query and display Related Experiments in the sidebar alongside existing Related Hypotheses and Related Analyses sections
  • Changes

    • crosslink_wiki_all.py — New crosslinking script with improved matching (gene, disease, pathway, kg_node_id)
    • api.py:13205-13235 — Added experiment query and sidebar rendering for wiki pages

    Work Log

    • 2026-04-02: Assessed state — 614K existing wiki links, 3 hypotheses unlinked, experiments not shown in sidebar
    • 2026-04-02: Registered 8 missing hypothesis artifacts, created 353K+ new crosslinks
    • 2026-04-02: Added Related Experiments sidebar section to wiki page rendering
    • 2026-04-02: Verified queries return correct results, syntax checks pass

    File: f499da03_crosslink_wiki_spec.md
    Modified: 2026-05-01 20:13
    Size: 1.4 KB