Skip to content

Follow biolink 4.4.5 category changes for correlated genes and disease models - #1439

Open
kevinschaper wants to merge 2 commits into
mainfrom
correlated-gene-to-disease-section
Open

kevinschaper wants to merge 2 commits into
mainfrom
correlated-gene-to-disease-section

Conversation

@kevinschaper

@kevinschaper kevinschaper commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Companion to the biolink-model 4.4.5 upgrade in the ingest repos (part of #1424). Two sections follow category changes forced by biolink 4.4+'s predicate enforcement; predicates are unchanged in both cases.

Correlated genes. Biolink closes CorrelatedGeneToDiseaseAssociation to the correlated_with predicate family, so OMIM and HPOA now emit non-causal gene-to-disease edges on the parent biolink:GeneToDiseaseAssociation with contributes_to or associated_with (monarch-initiative/omim-ingest#13, monarch-initiative/monarch-phenotype-profile-ingest#20). The "Correlated Genes" section becomes a keyed section, correlated_gene_to_disease, matched on that category plus those predicates via match_criteria: full, the mechanism the LOINC sections already use. Causal edges are unchanged.

Disease models. Biolink closes GenotypeToDiseaseAssociation to related_condition, so alliance-ingest now emits its is_model_of rows as GenotypeAsAModelOfDiseaseAssociation (monarch-initiative/alliance-ingest#13). The "Disease Models" section moves to that category.

Details:

  • Frontend lookups keyed by section id (titles, tab text, tooltips, type config, taxon filter, column shaping) follow the new key or category. Entity-grid lookups, keyed by category, use the parent gene-to-disease category.
  • AssociationCategory gains GENE_TO_DISEASE_ASSOCIATION and GENOTYPE_AS_A_MODEL_OF_DISEASE_ASSOCIATION; the enum is normally regenerated from Solr and will pick these up on the next build.
  • Fixtures follow the new Solr fragments and keys.

Notes

  • Section selection relies on Solr's category filter being an exact match, which is how every section works today. It would need revisiting if counts ever moved to category_closure.
  • tests/integration/test_solr_association.py still asserts the old correlated category against live Solr; it passes again once a KG built from the upgraded ingests is loaded.
  • Merge after the ingest PRs and before the next KG release goes live, otherwise the Correlated Genes and Disease Models sections show empty for that release.
  • Backend unit tests (427) and frontend unit, type and lint checks pass.

https://claude.ai/code/session_01V4T7NDQUNm5nXB7jtTEorT

Biolink 4.4+ closes CorrelatedGeneToDiseaseAssociation to the
correlated_with predicate family, so Monarch's non-causal gene-to-disease
sources (OMIM, HPOA) now emit the parent biolink:GeneToDiseaseAssociation
with contributes_to or associated_with. The "Correlated Genes" section
becomes a keyed section (correlated_gene_to_disease) matched on that
category plus those predicates, using the same full-criteria mechanism
the LOINC sections use. Causal edges keep their own category.

Frontend lookups that are keyed by section id move to the new key; the
entity-grid lookups, which are keyed by category, move to the parent
category. Fixtures follow the new Solr fragment and key.

Claude-Session: https://claude.ai/code/session_01V4T7NDQUNm5nXB7jtTEorT
@netlify

netlify Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for monarch-app ready!

Name Link
🔨 Latest commit f340eed
🔍 Latest deploy log https://app.netlify.com/projects/monarch-app/deploys/6ab2e71ba4159300081987c5
😎 Deploy Preview https://deploy-preview-1439--monarch-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.74%. Comparing base (7b9751c) to head (f340eed).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1439   +/-   ##
=======================================
  Coverage   83.74%   83.74%           
=======================================
  Files         127      127           
  Lines        6914     6916    +2     
=======================================
+ Hits         5790     5792    +2     
  Misses       1124     1124           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Biolink 4.4+ closes GenotypeToDiseaseAssociation to the related_condition
predicate, so alliance-ingest now emits its is_model_of rows as
GenotypeAsAModelOfDiseaseAssociation with the model_of predicate
unchanged. The "Disease Models" section, its frontend lookups, the API
category enum and the fixtures follow the new category.

Claude-Session: https://claude.ai/code/session_01V4T7NDQUNm5nXB7jtTEorT
@kevinschaper kevinschaper changed the title Select the correlated gene-to-disease section by category + predicate Follow biolink 4.4.5 category changes for correlated genes and disease models Sep 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant