Skip to content

Commit 2551864

Browse files
committed
Update README.md
1 parent 0679f10 commit 2551864

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
<img src="https://zenodo.org/badge/10987909.svg" alt="DOI"></a>
3030
</p>
3131

32-
Semantic mapping reasoner and assembler
33-
34-
This software provides:
32+
The Semantic Mapping Reasoner and Assembler (SeMRA) is a Python package that
33+
provides:
3534

3635
1. An object model for semantic mappings (based on SSSOM)
3736
2. Functionality for assembling and reasoning over semantic mappings at scale
@@ -84,6 +83,29 @@ go_mappings = semra.io.from_pyobo("go")
8483
uberon_mappings = semra.io.from_bioontologies("uberon")
8584
```
8685

86+
Mappings can be processed, aggregated, and summarized using functions from the
87+
[`semra.api`]() submodule:
88+
89+
```python
90+
from semra.api import filter_minimum_confidence, prioritize, project, summarize_prefixes
91+
92+
mappings = ...
93+
mappings = filter_minimum_confidence(mappings, cutoff=0.7)
94+
95+
# get one-to-one mappings between entities from the given prefixes
96+
chebi_to_mesh = project(mappings, source_prefix="chebi", target_prefix="mesh")
97+
98+
# process the mappings using a graph algorithm that creates
99+
# a "star" graph for every equivalent entity, where the center
100+
# of the star is determined by the equivalent entity with the
101+
# highest priority based on the given list
102+
priority_mapping = prioritize(mappings, priority=[
103+
"chebi", "chembl.compound", "pubchem.compound", "drugbank",
104+
])
105+
106+
summary_df = summarize_prefixes(mappings)
107+
```
108+
87109
## 🏞️ Landscape Analysis
88110

89111
We demonstrate using SeMRA to assess the [landscape](notebooks/landscape) of

0 commit comments

Comments
 (0)