-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add '<gene> mutation' catvars from MOA #651
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
Conversation
DanielPuthawala
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Cat-VRS portion of the example looks correct to me!
| if len(proposition.subjectVariant.constraints) != 1: | ||
| _logger.info( | ||
| "%s could not be loaded because it contains more than 1 constraint: %s", | ||
| statement.id, | ||
| proposition.subjectVariant.constraints, | ||
| ) | ||
| success = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will there ever be a case where a subject variant has more than one constraint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! This is a planned future thing but isn't super possible currently. A lot of the parts of this code are basically designed as guards against stuff that isn't supported yet but will be supported eventually
MOA examples: https://moalmanac.org/assertion/559, https://moalmanac.org/assertion/521
See here for an example of CDM output:
https://gist.github.com/jsstevenson/5fc111fdff9e7a23efba18bf682341bc