Repository navigation
Add UniProt-to-EFO/OBA protein measurement mapping table - #2659
Conversation
…ent mappings - New SPARQL query (src/sparql/uniprot-efo-map.sparql) extracts all EFO measurement terms (subclasses of EFO_0001444) that have UniProt xrefs - Added report-uniprot-efo-map.tsv to trait_reports Makefile target - Generated initial mapping table with 2,355 UniProt-to-EFO entries - Table can be regenerated via: make reports/report-uniprot-efo-map.tsv Co-authored-by: jamesamcl <[email protected]> Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/317866ce-95ba-4fe9-aeaa-3135cd5c0364
|
@copilot I was expecting terms imported from OBA to be in this table too |
Updated SPARQL query with a UNION to also capture OBA terms that replaced obsolete EFO measurement terms carrying UniProt xrefs. Added specific Makefile target with --use-graphs true to resolve OBA labels from imports. Total mappings: 2,633 (2,580 EFO + 53 OBA). Co-authored-by: jamesamcl <[email protected]> Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/05017432-0e5a-4c54-acc3-3f38a6e30462
Updated in e05c45c. The SPARQL query now includes a UNION branch that finds obsolete EFO terms with UniProt xrefs whose |
|
@copilot Is this including both xrefs and is_about? |
Added UNION branch to SPARQL query that follows is_about (IAO_0000136) relationships from measurement terms to PR_ protein terms, extracting UniProtKB xrefs from annotation axioms. This adds 7 additional mappings (2,640 total: 2,580 direct xrefs + 7 via is_about + 53 OBA replacements). UniProtKB: prefix is normalized to uniprot: for consistency. Co-authored-by: jamesamcl <[email protected]> Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/07d4cc89-1822-4246-864e-96093d771db3
Previously it was only capturing direct Note: OBA terms themselves don't use |
|
@copilot does it resolve uniprot ids for all PRO classes? I believe the PRO classes might be species neutral and not have uniprot ids, so we need to resolve to human in that case |
The is_about UNION branch now follows species-neutral PR classes to their human-specific subclasses (via only_in_taxon some NCBITaxon_9606) to resolve UniProtKB xrefs. This picks up 386 additional mappings for a total of 3,025 (2,972 EFO + 53 OBA). Co-authored-by: jamesamcl <[email protected]> Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/24fcd075-dd25-4c8f-92a4-8564e7ced1fc
Correct — the previous version only found UniProt IDs on the few PR classes that had Updated in 41f922f to resolve through the human-specific subclass: |
|
@copilot what about direct is_about? looks like you only handle is_about in the PRO case now? |
…resolution The previous commit replaced the general is_about branch with the PRO-specific human resolution. Now both paths are included: 1. is_about -> protein -> direct UniProtKB xref on annotation axiom 2. is_about -> species-neutral PR -> human subclass -> UniProtKB xref Total: 3,026 mappings (2,973 EFO + 53 OBA). Co-authored-by: jamesamcl <[email protected]> Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/b00e76cf-42b2-42fc-935b-a8460f64fc5f
You're right — the previous commit replaced the direct |
|
@copilot I am concerned this is still not exhaustive. Can you make sure you have covered all permutations of is_about and xrefs, whether or not we go through an intermediate term, and different prefixes used for uniprot. Afterwards comment here with a table of all of the permutations. Please check what you have done to make sure you don't miss any. |
Audited all permutations of xrefs/is_about, intermediate resolution, and UniProt prefix formats. Added a new UNION branch for URL-style UniProt xrefs (https://www.uniprot.org/uniprotkb/*/entry) found on 2 measurement terms, normalizing to uniprot: prefix. Total: 3,028 mappings (2,975 EFO + 53 OBA). Co-authored-by: jamesamcl <[email protected]> Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/3fa2caf5-19b5-4676-ae47-dde12e259840
Audited all permutations and added the missing one in 680bedc. Here's the full coverage table:
Verified not applicable (0 hits on measurement terms):
Total: 3,028 mappings (2,975 EFO + 53 OBA). |
GWAS curators need a lookup table from UniProt IDs to EFO protein measurement terms.
src/sparql/uniprot-efo-map.sparql): Extracts all measurement terms (subclasses ofEFO_0001444) with UniProt mappings from five exhaustively audited sources:hasDbXref uniprot:*xrefs on measurement termshttps://www.uniprot.org/uniprotkb/*/entry) on measurement terms, normalized touniprot:prefixis_about(IAO_0000136) relationships from measurement terms to protein entities withUniProtKB:*xrefs on annotation axioms (normalized touniprot:prefix)is_aboutrelationships to species-neutral PR_ protein classes, resolving to their human-specific subclasses (viaonly_in_taxon some NCBITaxon_9606) to extractUniProtKB:*xrefsuniprot:xrefs whoseterm_replaced_bypoints to an OBA termuniprot:,UniProtKB:, URL-style) were systematically verified to ensure no mappings are missedreports/report-uniprot-efo-map.tsvusing--use-graphs trueto resolve OBA labels from imports, and included it in thetrait_reportstarget for easy regenerationsrc/ontology/reports/report-uniprot-efo-map.tsv): 3,028 mappings (2,975 EFO + 53 OBA)Regenerate with:
Original prompt
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.