Skip to content

Conversation

@jsstevenson
Copy link
Member

@jsstevenson jsstevenson commented Nov 27, 2025

  • Identify MOA variants that can be represented with FeatureContextConstraints and construct said constraints. I think this could account for up to 200 additional statements.
  • Update DB ingest method to block upload of unsupported catvars on the DB side. Once this PR is approved, a subsequent ticket could handle ingest and retrieval of them.

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

@jsstevenson jsstevenson added the priority:medium Medium priority label Nov 27, 2025
@jsstevenson jsstevenson changed the title feat: add gene mutations from moa feat: add '<gene> mutation' catvars from MOA Nov 28, 2025
@jsstevenson jsstevenson marked this pull request as ready for review November 28, 2025 20:12
@jsstevenson jsstevenson requested a review from a team as a code owner November 28, 2025 20:12
Copy link

@DanielPuthawala DanielPuthawala left a 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!

Comment on lines +102 to +108
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

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?

Copy link
Member Author

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

@jsstevenson jsstevenson merged commit 6268fa3 into staging Dec 3, 2025
21 checks passed
@jsstevenson jsstevenson deleted the feature-constraint-experiment branch December 3, 2025 18:13
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.

4 participants