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

fix: update grouper API #433

Merged
merged 10 commits into from
Apr 19, 2024
Merged

fix: update grouper API #433

merged 10 commits into from
Apr 19, 2024

Conversation

jsstevenson
Copy link
Contributor

@jsstevenson jsstevenson commented Oct 9, 2023

close #428

  • Implement support for changes made to normalizer APIs over the last ~12 months
  • add some documentation for manually running updates
  • update a couple of citations

@jsstevenson jsstevenson added the priority:medium Medium priority label Apr 12, 2024
@jsstevenson jsstevenson marked this pull request as ready for review April 12, 2024 01:08
Copy link
Contributor

@mcannon068nw mcannon068nw left a comment

Choose a reason for hiding this comment

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

lgtm.

Thank you for writing up the from scratch data load in the README

Comment on lines -43 to +46
normalized_id = normalized_drug[@descriptor_name][@id_name]
create_new_drug(normalized_drug[@descriptor_name]) if Drug.find_by(concept_id: normalized_id).nil?
normalized_id = normalized_drug['normalized_id']
create_new_drug(normalized_drug['therapeutic_agent'], normalized_id) if Drug.find_by(concept_id: normalized_id).nil?
Copy link
Contributor

Choose a reason for hiding this comment

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

potentially dumb Q, but why the change to a hard coded 'therapeutic_agent' tag. Was the descriptor always therapeutic agent anyways?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This relates to some VA/VRS/GKS stuff introduced in the last few months. Previously, we were delivering VRSATILE therapeutic descriptors, but VRSATILE has been canned and therapeutics are a first class entity in the GA4GH knowledge model, e.g. described here: https://github.com/ga4gh/vrs-python/blob/1c9e4ab8d66c652a8d27430a77c4ad15834aa1ea/src/ga4gh/core/_internal/models.py#L229

The reason for instance variable vs hard coded string was there were some other methods that were able to be neutral with respect to drug versus gene if the descriptor_name instance var was available, but they kind of lost their utility over time and I think it's easier just to hard code things now

@jsstevenson jsstevenson merged commit 79f22e9 into dev Apr 19, 2024
6 checks passed
@jsstevenson jsstevenson deleted the data-readme branch April 19, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:medium Medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants