Skip to content

test: add validation tests for intronic positions#676

Draft
korikuzma wants to merge 12 commits intov2from
v2-add-intronic-positions-tests
Draft

test: add validation tests for intronic positions#676
korikuzma wants to merge 12 commits intov2from
v2-add-intronic-positions-tests

Conversation

@korikuzma
Copy link
Contributor

  • SequenceOffsetLocation, RelativeSequenceLocation, RelativeAllele

Tried to follow Lucid chart

ahwagner and others added 4 commits January 5, 2026 10:18
@korikuzma korikuzma self-assigned this Jan 7, 2026
id: NM_001385641.1
type: SequenceReference
refgetAccession: SQ.cXRaN1IhgR6Mg9U-qafH2Be6IuQgB6Ox
anchor: 610
Copy link
Contributor

@Mrinal-Thomas-Epic Mrinal-Thomas-Epic Jan 26, 2026

Choose a reason for hiding this comment

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

Shouldn't this be 609, rather than 610?

Basing this on thinking through this simplified example
image

id: NM_001385641.1
type: SequenceReference
refgetAccession: SQ.cXRaN1IhgR6Mg9U-qafH2Be6IuQgB6Ox
anchor: 1059
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be 1057?

Comment on lines 271 to 276
relativeState:
type: LiteralSequenceExpression
sequence: A
baseState:
type: LiteralSequenceExpression
sequence: A
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only thing we did not review together @ahwagner @larrybabb

Copy link
Contributor

@larrybabb larrybabb Jan 29, 2026

Choose a reason for hiding this comment

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

@ahwagner... baseState v relativeState? is this only different when the transcript is in the opposite direction? So if the LiteralSequenceExpression is A in the baseState it would be T in the relativeState?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I see this in the PR as "mappedState". I'm on the fence about it, okay either way, I think I do prefer "mappedState". We should definitely keep the class as "relativeAllele" and definitely keep the "relativeLocation" slot on the relative allele.

Copy link
Contributor

@larrybabb larrybabb left a comment

Choose a reason for hiding this comment

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

I left a comment for @ahwagner because I'm not 100% confident of the purpose of both base/relative State fields. I believe the relativeState would always be the complement of the baseState when the mapped sequence is in the opposite direction of the base sequence.

!!! think we should consider changing the name of relativeState to mappedState. It seems like baseState clearly aligns with the relativeLocation.baseSequenceLocation so I would think that mappedState would align similarly with the relativeLocation.mappedSequenceLocation

Comment on lines 271 to 276
relativeState:
type: LiteralSequenceExpression
sequence: A
baseState:
type: LiteralSequenceExpression
sequence: A
Copy link
Contributor

@larrybabb larrybabb Jan 29, 2026

Choose a reason for hiding this comment

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

@ahwagner... baseState v relativeState? is this only different when the transcript is in the opposite direction? So if the LiteralSequenceExpression is A in the baseState it would be T in the relativeState?

offsetStart: -1
offsetEnd: 0
out:
ga4gh_digest: null
Copy link
Member

Choose a reason for hiding this comment

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

We need to review digest behavior for RelativeLocation and RelativeAllele objects

@larrybabb larrybabb marked this pull request as draft February 12, 2026 15:17
Base automatically changed from v2-add-intronic-positions to v2 February 12, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants