test: update civic onco assertion test fixture#404
Open
korikuzma wants to merge 11 commits into
Open
Conversation
* Add description * Add alleleOriginQualifier + geneContextQualifier to propositions * Update proposition variant: Fix variant aliases, add addtl mapping, add extensions * Add specifiedBy + extensions to Evidence Line
ahwagner
reviewed
May 29, 2026
ahwagner
requested changes
May 29, 2026
ahwagner
requested changes
Jun 1, 2026
ahwagner
left a comment
Member
There was a problem hiding this comment.
Started reviewing, made it only through assertion, but wanted to provide feedback early
| predicate: isOncogenicFor | ||
| alleleOriginQualifier: | ||
| extensions: | ||
| - name: civic_variant_origin |
Member
There was a problem hiding this comment.
Instead of an extension, this is an ideal candidate for an exact match mapping.
Contributor
Author
There was a problem hiding this comment.
Not sure what you would want for the system?
mappings:
- coding:
code: SOMATIC
system: https://civicdb.org
relation: exactMatch
This was referenced Jun 1, 2026
* members, constraints, ids on mappings
This was referenced Jun 17, 2026
korikuzma
added a commit
that referenced
this pull request
Jun 24, 2026
* Just to get tests to pass. Actual representation will be in #404
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm working on supporting Oncgenicity CIViC Assertions. Using CIViCpy, this is the exact representation we would use.
Updates:
@ahwagner I had a couple questions/comments about things that feel a little redundant/off to me, and wanted to see if there's a different way we should be representing these:
citationsgriffithlab/civicpy#219 will eventually revert this). As a result, the same extension is duplicated across Evidence Lines.Example:
va-spec/tests/fixtures/civic-assertion-oncogenicity.yaml
Lines 352 to 361 in ab2a15c
Given that this is a temporary workaround, is it acceptable to keep the EID references duplicated across Evidence Lines, or would you prefer that they be represented elsewhere? If the latter, do you have a suggestion?
In above example, only 12800, 12709, and 11723 EIDs have oncogenic evidence type.
Given this, is it acceptable to submit all associated EIDs, even though some may not correspond directly to the oncogenic assertion evidence?
Because oncogenic assertions can be supported by a mix of CIViC evidence types, we do not currently represent Evidence Items in
EvidenceLine.hasEvidenceItems. Given that limitation, should I submit only the EIDs described above in 1, or should I also include the PMIDs associated with those EIDs for downstream ClinVar use?Statement.specifiedByandEvidenceLine.specifiedByare the identical except formethodType, where statement usesguidelineand evidence line uses a value such asfunctional_domain_location.Statement:
va-spec/tests/fixtures/civic-assertion-oncogenicity.yaml
Lines 158 to 171 in 43c83fc
EvidenceLine:
va-spec/tests/fixtures/civic-assertion-oncogenicity.yaml
Lines 206 to 223 in 43c83fc
This is how we currently reprsent MANE select transcripts in CIViCpy. For ClinVar This, we'll want to think about how to handle this. Currently,
Allele.expressionsordered=False. So would we just look for an extension that says MANE or priority (since non-hgvs could be provied)?va-spec/tests/fixtures/civic-assertion-oncogenicity.yaml
Lines 138 to 142 in ca47c43
test: update civic onco assertion test fixture #404 (comment) - confirm system is okay.@ahwagner gave revised changes feat!: store allele origin as mapping, not extension griffithlab/civicpy#236 (comment).Statement.propositionandEvidenceLine.targetPropositionare identical (va-spec/tests/fixtures/civic-assertion-oncogenicity.yaml
Line 364 in ab2a15c
NOTE: Deleted
EvidenceLine.targetProposition, will assumeStatement.propositionClarity on Method Type exists in evidence line for ACMG 2015 profile #407 -- does this meanmethodTypeshould not exist in Evidence Lines? This could also impact oncogenicity evdience lines