Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predict DOID mappings to UMLS, MeSH, and EFO #68

Merged
merged 2 commits into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions scripts/generate_doid_mappings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-

"""Generate mappings to Gilda from given PyOBO prefixes."""

import click
from more_click import verbose_option

from biomappings.gilda_utils import append_gilda_predictions
from biomappings.mapping_graph import get_custom_filter
from biomappings.utils import get_script_url


@click.command()
@verbose_option
def main():
"""Generate DOID mappings."""
provenance = get_script_url(__file__)

prefix = "doid"
targets = [
"umls",
"efo",
"mesh",
# MONDO and IDO both have the issue of
# mismatch of regex/banana
# "mondo",
# "ido",
# ORDO and CIDO can't be parsed
# "ordo",
# "cido"
]

custom_filter = get_custom_filter(prefix, targets)
append_gilda_predictions(
prefix,
targets,
provenance=provenance,
relation="skos:exactMatch",
custom_filter=custom_filter,
)


if __name__ == "__main__":
main()
Loading