Assess whether OMIM Data is in DO
inventory_omim.RdAssesses whether OMIM identifiers are present in the Human Disease Ontology
as mappings (either xrefs or skos mappings). Utilizes robot() for
comparison.
Arguments
- onto_path
The path to an ontology file, as a string.
- omim_input
An
omim_tblcreated byread_omim()or the path to a .tsv or .csv file (possibly compressed) that can be read byread_omim()and includes OMIM data to compare against the mappings in the ontology.NOTE: If an
omim_tblis provided,keep_mimwill be ignored.- keep_mim
[OMIM search data only] The MIM symbols representing the data types to keep, as a character vector, or
NULLto retain all (default:"#"and"%").The OMIM defined MIM symbols are:
MIM symbol MIM type *gene +gene, includes phenotype #phenotype %phenotype, unknown molecular basis ^deprecated nonephenotype, suspected/overlap - include_pred
The predicates to include when testing for one-to-multiple mappings, as a character vector (default:
skos:exactMatch,skos:closeMatch, andoboInOwl:hasDbXref). All other predicates are ignored.- when_pred_NA
What to do when missing predicates are detected, as a string; one of "error" (default), "warn", or NULL (do nothing).
NApredicates are always ignored when no mapping exists (i.e. one or both corresponding values ofxoryis/are alsoNA).
Value
The omim_input with 5 additional columns:
exists: Logical indicating whether an OMIM ID is present in the DO.mapping_type: The mapping predicate(s) of this OMIM ID to a disease, if present. Multiple predicate(s) between the same OMIM and DOID will be pipe delimited.doid: The DOID of the disease mapped to this OMIM ID, if present.do_label: The label of the disease mapped to this OMIM ID, if present.do_dep: Logical indicating whether a disease is deprecated or not, if present.multimaps: The direction in which an OMIM or DO term maps to multiple terms in the other resource, as "omim_to_doid", "doid_to_omim", "both_ways" orNA.
Output will have the class omim_inventory, a type of class
mapping_inventory.