You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, Mondo mappings are MONDO ids to external. We would like to add external-external mappings to the Monarch mapping commons. Here is some code using semra that can roughly achieve this but may need tweaks.
importpandasaspdfromsemra.apiimportinfer_chains, infer_reversiblefromsemra.ioimportfrom_sssom_df, get_sssom_dfdata= [
["UBERON:1", "skos:exactMatch", "FBbt:9"],
["UBERON:1", "skos:exactMatch", "WBbt:6"],
]
# replace the following with mondo mappingsdf=pd.DataFrame(data=data, columns=["subject_id", "predicate_id", "object_id"])
mappings=from_sssom_df(df, mapping_set_name="test")
mappings=infer_reversible(mappings, progress=False)
mappings=infer_chains(mappings, progress=False)
df=get_sssom_df(mappings)
msdf=MappingSetDataFrame(df=df, converter=get_converter())
msdf.standardize_references()
msdf.clean_prefix_map()
The text was updated successfully, but these errors were encountered:
Right now, Mondo mappings are MONDO ids to external. We would like to add external-external mappings to the Monarch mapping commons. Here is some code using semra that can roughly achieve this but may need tweaks.
The text was updated successfully, but these errors were encountered: