Add extra column Hgvs_Offset and extend Additional_Transcripts - #301
Open
leexgh wants to merge 7 commits into
Open
Add extra column Hgvs_Offset and extend Additional_Transcripts#301leexgh wants to merge 7 commits into
leexgh wants to merge 7 commits into
Conversation
- Bump genome-nexus-java-api-client to b43dccc7fa, which adds TranscriptConsequence.hgvsOffset (needed to read hgvs_offset from Genome Nexus responses; the previously pinned client never exposed it). - Add HGVS_Offset column under --mode extended, resolved by matching the canonical transcript against the raw transcriptConsequences list. - Fix minimal_example_with_additional_columns.txt, which went stale after RefSeq was added to Additional_Transcripts entries and was never regenerated, breaking the extended-mode integration test.
Production upgraded from v2.1.3 to v2.2.1 (crossing genome-nexus#861's canonical transcript / splice consequence changes), which changed HGVSp resolution for intronic splice-region and synonymous-splice variants (e.g. blank/"p.X###_splice" -> "p.Leu###="/"p.*###*"). Regenerated all affected fixtures against the live server; verified each diff was consistent with this one underlying behavior change before accepting.
leexgh
force-pushed
the
extra-column
branch
2 times, most recently
from
August 6, 2026 05:16
583b2b0 to
136afdb
Compare
…mutation so the protein change is different (since 2.2.1)
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.
Summary
HGVS_Offsetcolumn, populated under--mode extended(alongsideAdditional_Transcripts), resolved from the canonical transcript'shgvs_offsetin the raw Genome NexustranscriptConsequencesresponse.genome-nexus-java-api-clientfromc8ba14d555tob43dccc7fa, which is required to readhgvs_offsetat all — the previously pinned client never deserialized that field (confirmed viajavapbefore making any code changes).minimal_example_with_additional_columns.txtwent stale after RefSeq was added toAdditional_Transcriptsentries and was never regenerated, soSpringBatchIntegrationTest#check_if_output_contains_additional_transcripts_when_extendedMode_is_truewas failing on this branch. Regenerated againstwww.genomenexus.organd confirmed the only diff was the missingRefSeqfield.Details
AnnotationUtil.resolveHgvsOffset(...)matches the canonical transcript bytranscriptIdagainst the rawtranscriptConsequenceslist (the summarizedTranscriptConsequenceSummaryused for HGVSc/HGVSp doesn't exposehgvs_offset).GenomeNexusImpl/AnnotatedRecordfollow the exact same pattern asAdditional_Transcripts(extended-mode gated, header only grows when the field is actually set).AnnotationUtilTestunit tests cover the matching logic directly, sincewww.genomenexus.orgdoesn't computehgvs_offsetyet (still pre-genome-nexus#861, confirmed via direct API check) — the field reads blank in the live integration test fixture for that reason, not a bug.Test plan
mvn clean testpasses (full suite)AnnotationUtilTestcovers match found / null offset / no match / null transcript list / null canonical transcriptTranscriptConsequence.getHgvsOffset()exists in the new client jar viajavapbefore wiring it in