-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
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,42 @@ | ||
# -*- 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", | ||
"bto", | ||
"cellosaurus", | ||
] | ||
|
||
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
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