Developer documentation · schema 3.1.8GitHub
Fair3RFDF schema

Writing the schema

Cross-reference catalog (xref_catalog)

A top-level dictionary that standardizes how an identifier (gene, allele, disease...) resolves to a source database and a clickable URI, independent of which field, API, or concept produced the id. Keyed by the identifier's own prefix ("DOID", "OMIM", "MGI"...), uppercased:

"xref_catalog": {
  "MGI": {
    "db": "mgi",
    "label": "MGI",
    "uri": "https://www.informatics.jax.org/allele/MGI:{{id_suffix}}",
    "provider_aliases": ["MOUSE"]
  },
  "DOID": {
    "db": "doid",
    "label": "Disease Ontology",
    "uri": "https://identifiers.org/{{id}}"
  }
}
Key Description
db Internal source key
label Display label for the badge/link
uri Link template. {{id_suffix}} is the identifier with its prefix stripped (e.g. MGI: → the rest); {{id}} is the full accession as-is (e.g. DOID:12858) — use whichever the target site's URL actually needs (most identifiers.org-backed entries just need {{id}}; a site with its own URL scheme, like OMIM's omim.org/entry/{{id_suffix}}, needs the bare suffix)
provider_aliases Alternate provider names, as returned by some APIs, that should resolve to this same entry

Looked up by mapper.xref_from_extra / mapper.xref_from_extra_array (see Mapper extras & cross-references) from any "PREFIX:ID"-shaped accession, whatever field or concept it came from — a disease's DOID:12858 and a gene's MGI:12345 both resolve through this same catalog. A prefix with no entry here is simply skipped (no cross-reference shown), so adding a new one is always safe — and the reverse also holds: to stop a prefix from showing up as a cross-reference badge, remove its entry here rather than touching the field or API that produces the raw accession list. sections.disease.disease_search (MONDO) deliberately keeps only DOID, OMIM, ORPHANET and MESH this way, even though Mondo's own database_cross_reference list also includes NCIT, UMLS and SCTID — the consortium decided a handful of well-known disease databases is enough for resilience, and showing every cross-reference Mondo happens to carry would crowd the form. The list is alphabetical by prefix, not ranked by importance (checked live: Huntington disease's own list runs DOID, GARD, ICD10CM, ICD10WHO, ICD9, MEDGEN, MESH, MedDRA, NANDO, NCIT, OMIM, Orphanet, SCTID, UMLS, icd11.foundation), so truncating to the first few raw entries instead of naming the databases would often drop OMIM/Orphanet and keep whatever sorts earlier alphabetically — naming the databases in xref_catalog is what makes the limit deterministic.

Organism presets point into the catalog via allele_source_label (e.g. "allele_source_label": "MGI" on the mouse preset), so the UI knows which cross-reference database to prioritize for a given species.


Edit this page on GitHub