-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The [Cell Line Ontology (CLO)](https://bioregistry.io/registry/clo) is a detailed resource, however it does not follow standard OBO modeling pattern for cross-references that either a predicate from [SKOS](https://bioregistry.io/skos) or `oboInOwl:hasDbXref` to point to a single CURIE encoded as a string. Instead, it uses `rdfs:seeAlso` with a combination of non-standard CURIEs that are either comma or semi-colon delimited. Depends on: - biopragmatics/bioregistry#896 - CLO-ontology/CLO#103
- Loading branch information
Showing
9 changed files
with
1,553 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Generate mappings to CLO from to MeSH.""" | ||
|
||
import click | ||
from more_click import verbose_option | ||
from semra.sources.clo import get_clo_mappings | ||
|
||
from biomappings.gilda_utils import append_gilda_predictions | ||
from biomappings.mapping_graph import get_filter_from_semra | ||
from biomappings.utils import get_script_url | ||
|
||
|
||
@click.command() | ||
@verbose_option | ||
def main(): | ||
"""Generate CLO-MeSH mappings.""" | ||
provenance = get_script_url(__file__) | ||
|
||
prefix = "clo" | ||
targets = [ | ||
"mesh", | ||
"efo", | ||
] | ||
|
||
clo_mappings = get_clo_mappings() | ||
custom_filter = get_filter_from_semra(clo_mappings) | ||
|
||
append_gilda_predictions( | ||
prefix, | ||
targets, | ||
provenance=provenance, | ||
custom_filter=custom_filter, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.