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

Remove unneeded HGNC SPARQL updates #459

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Remove unneeded HGNC SPARQL updates #459

merged 2 commits into from
Mar 11, 2024

Conversation

joeflack4
Copy link
Contributor

@joeflack4 joeflack4 commented Mar 3, 2024

Overview

In makefile, in components goals, removed unnecessary robot query updates involving HGNC mappings. This query only applies to OMIM. This does not affect outputs, just code cleanliness.

Additional details

I'm not sure how these lines got there in the first place. In the ICD10WHO instance, I'm pretty sure it was me copy/pasting over the lines, but I think someone else might have added them erroneously in the other cases, maybe.

Pre-merge checklist

Documentation

Was the documentation added/updated under docs/?

  • Yes
  • No, updates to the docs were not necessary after careful consideration

QC

Was the full pipeline run before submitting this PR using sh run.sh make build-mondo-ingest on this branch (after
docker pull obolibrary/odkfull:dev), and no errors occurred?

  • Yes
  • No, there are no functional (code-related) changes to the pipeline in the PR, so no re-run is necessary

New Packages

Were any new Python packages added?

Were any other non-Python packages added?

PR Review and Conversations Resolved

Has the PR been sufficiently reviewed by at least 1 team member of the Mondo Technical team and all threads resolved?

  • Yes

- Update: In makefile, in components goals, removed unnecessary robot query updates involving HGNC mappings. This query only applies to OMIM.
@joeflack4 joeflack4 changed the title Remove hgnc sparql Remove unneeded HGNC SPARQL updates Mar 3, 2024
@joeflack4 joeflack4 self-assigned this Mar 3, 2024
@joeflack4 joeflack4 changed the base branch from main to develop March 3, 2024 22:19
@@ -113,7 +113,6 @@ $(COMPONENTSDIR)/doid.owl: $(TMPDIR)/doid_relevant_signature.txt | component-dow
remove -T $(TMPDIR)/doid_relevant_signature.txt --select complement --select "classes individuals" --trim false \
query \
--update ../sparql/fix_omimps.ru \
--update ../sparql/fix_hgnc_mappings.ru \
Copy link
Contributor Author

@joeflack4 joeflack4 Mar 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File Rename File & ref deletion

If indeed I'm correct and fix_hgnc_mappings.ru only applies to OMIM, why don't we prepend omim_ to the file name for disambiguation?

Additional FYI

I also found a similar situation with an ORDO related query.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could, but even better: is this "fix" still necessary? Maybe it can be removed altogether?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good question. I'll look into that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still an open action item, to look into whether the "fix" hgnc mappings is still necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matentzn You were correct. I ran with and without this SPARQL update, and there was no difference. I've deleted the file and its references. Feel free to merge!

@joeflack4 joeflack4 mentioned this pull request Mar 3, 2024
9 tasks
@joeflack4 joeflack4 added the code quality House keeping label Mar 3, 2024
- Delete: fix_hgnc_mappings.ru and references. It is no longer needed.
@joeflack4 joeflack4 mentioned this pull request Mar 11, 2024
4 tasks
@matentzn
Copy link
Member

Thank you for the great simplification and refactoring!

@joeflack4 joeflack4 merged commit 1adaad4 into develop Mar 11, 2024
@joeflack4 joeflack4 deleted the remove-hgnc-sparql branch March 11, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality House keeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants