Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix method codon() in TranscriptVariationAllele #1131

Merged

Conversation

dglemos
Copy link
Contributor

@dglemos dglemos commented Nov 11, 2024

The method to calculate the codon was updated in release 113 - check this PR.
After this update, the Codons and Consequence are wrong for some RefSeq transcripts.
Check ticket: https://www.ebi.ac.uk/panda/jira/browse/ENSVAR-6640

The line substr($cds, $tv->cds_start(undef, $tr->strand * $shifting_offset) -1, $vf_nt_len) = $seq; has been removed from the method but it is important for these RefSeq transcripts.
This code edits the $cds at the specific position start and end ($tv->cds_start(undef, $tr->strand * $shifting_offset) -1, $vf_nt_len). It replaces the allele by $seq.

This code update should be cherry-picked to 113.
It should fix the following issues:
Ensembl/ensembl-vep#1775
Ensembl/ensembl-vep#1787
Ensembl/ensembl-vep#1793

@dglemos dglemos changed the title Fix method codon in TranscriptVariationAllele Fix method codon() in TranscriptVariationAllele Nov 11, 2024
@dglemos dglemos removed the on hold label Nov 12, 2024
Copy link
Contributor

@likhitha-surapaneni likhitha-surapaneni left a comment

Choose a reason for hiding this comment

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

Works as expected, thanks @dglemos

@likhitha-surapaneni likhitha-surapaneni merged commit 65d9663 into Ensembl:postreleasefix/114 Nov 25, 2024
1 check passed
@likhitha-surapaneni
Copy link
Contributor

Merged to main, release/114 and cherry-picked to release/113

@hwalinga
Copy link

@likhitha-surapaneni I have the same error as Ensembl/ensembl-vep#1775 on the ensembl rest api in the variant_recorder (http://rest.ensembl.org/variant_recoder/human/rs201618914)

Is this fix also a fix for that? And when does this fix is expected to land in the rest api infra? Thank you.

@hwalinga
Copy link

hwalinga commented Dec 5, 2024

The fix has landed in the rest api infra.

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.

3 participants