Skip to content

Develop - #824

Merged
Peter-J-Freeman merged 15 commits into
masterfrom
develop
Jun 5, 2026
Merged

Develop#824
Peter-J-Freeman merged 15 commits into
masterfrom
develop

Conversation

@Peter-J-Freeman

Copy link
Copy Markdown
Collaborator

No description provided.

John-F-Wagstaff and others added 12 commits June 1, 2026 20:31
Filtering, other than transcript lists, or all, can sometimes cause the
loss of input genomic variants from output, when G matches a transcript
that is later filtered, adjust filtering order a bit to prevent this.
Tweak the shortening of long ref dependant VCF output (deletions,
duplications and inversions) to happen on all valid VCF output.
We previously relied on a list of known gapped genes to enable gap
mapping correction. This patch switches VV to checking the alignment in
the database, and as such needs a database interface upgrade to work,
but will negate the issues with maintaining the lists and the overhead
of checking non-gapped alignments when only one is affected.

Since this would add extra database fetches, which can be the slowest
part of the code in the simple case, we also take this as opportunity to
switch to only fetching this along with the other from-transcript
direction transcript mapping data via a caching store, no more need to
repeatedly fetch the exon set.
…invs

This commit adds tests and additional functionality to ensure dels, delins, and invs starting in the CDS and spanning into the Ter codon and/or 3 prime UTR apply the hgvs rules that the veriant type is a frameshift
to comply with HGVS rules we have updated our handling of UTR translations to provide p.(=) rather than the old format of p.?
Comment thread VariantValidator/modules/vvMixinInit.py Outdated
Comment thread VariantValidator/modules/vvMixinInit.py Outdated
Comment thread VariantValidator/modules/vvMixinInit.py
######################################

if (
("del" in str(hgvs_naughty.posedit.edit)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The logic looks good here, but the same low priority nitpicks apply to this if statement (i.e. hgvs_naughty.posedit.edit.type in ['del', 'delins'] instead of "del" in and == not in for 'ins')

Comment thread VariantValidator/modules/vvMixinInit.py Outdated
Comment thread tests/test_inputs.py

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some people prefer keeping a clean history for tests, if we want to follow this then merging this commit with the previous commit would be the way to go, I don't mind either way but it can help with some automatic tooling for git bisecting.

Comment thread VariantValidator/modules/vvMixinCore.py Outdated

@John-F-Wagstaff John-F-Wagstaff left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is not anything high priority here, so it should be fine to go in as-is, otherwise @Peter-J-Freeman If you want me to have a quick check over after any refinements then that would be fine.

@Peter-J-Freeman

Copy link
Copy Markdown
Collaborator Author

Working on the refinements so I know how to use them. Will push up the fixes for a review and any I missed you can polish off

@John-F-Wagstaff

Copy link
Copy Markdown
Collaborator

Sounds good, we need to go over the whole code base at some point, but it is such a big job, and should not change the logic, so we haven't had a good enough reason to prioritise it.

replaces string-based checks with HGVS-native attribute logic. This is a prototype and needs to be rolled out widely
Completes 3 prime UTR handling in MixinInit without stringing
feat: update UTR searching to use datum instead of regex
@Peter-J-Freeman

Copy link
Copy Markdown
Collaborator Author

@John-F-Wagstaff should be good to go now. final quick check pls

@John-F-Wagstaff

Copy link
Copy Markdown
Collaborator

Looks good, as far as I can see.

@Peter-J-Freeman
Peter-J-Freeman merged commit 4320ff6 into master Jun 5, 2026
1 check passed
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.

2 participants