Skip to content

Commit

Permalink
Merge pull request #609 from monarch-initiative/add-maxo-and-go-quali…
Browse files Browse the repository at this point in the history
…fiers

Add species context qualifier, update closurizer
  • Loading branch information
kevinschaper authored Nov 19, 2024
2 parents 4d2eb7a + 3fd0aa5 commit a4894f4
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 54 deletions.
107 changes: 60 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python = "^3.10"
biolink-model = "^4.2.0"
bmt = "^1.0.15"
cat-merge = "0.2.1"
closurizer = "0.5.1"
closurizer = "0.7.0"
kghub-downloader = "^0.3.10"
kgx = "^2.4.2"
koza = "^0.6.1"
Expand Down
4 changes: 2 additions & 2 deletions scripts/load_solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ echo "Download the schema from monarch-py"

# retrieve the schema from the main branch on monarch-app

curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/add-disease-context-qualifier/backend/src/monarch_py/datamodels/model.yaml
curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/add-disease-context-qualifier/backend/src/monarch_py/datamodels/similarity.yaml
curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/add-species-context-qualifier/backend/src/monarch_py/datamodels/model.yaml
curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/add-species-context-qualifier/backend/src/monarch_py/datamodels/similarity.yaml

echo "Starting the server"
poetry run lsolr start-server
Expand Down
13 changes: 9 additions & 4 deletions src/monarch_ingest/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,20 @@ def apply_closure(
closure_file=closure_file,
edges_output_file=edges_output_file,
nodes_output_file=nodes_output_file,
# full closure expansion for these fields
edge_fields=[
"subject",
"object",
"disease_context_qualifier",
],
# just populate _label, _category, _namespace properties for these fields
edge_fields_to_label=[
"qualifiers",
"frequency_qualifier",
"onset_qualifier",
"sex_qualifier",
"species_context_qualifier",
"stage_qualifier",
"disease_context_qualifier"
"sex_qualifier",
"onset_qualifier",
"frequency_qualifier",
],
node_fields=["has_phenotype"],
evidence_fields=["has_evidence", "publications"],
Expand Down

0 comments on commit a4894f4

Please sign in to comment.