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

Update NearestExonJB #771

Open
wants to merge 7 commits into
base: postreleasefix/114
Choose a base branch
from

Conversation

dglemos
Copy link
Contributor

@dglemos dglemos commented Jan 30, 2025

The plugin only returns overlaping exons.
This PR introduces a new option --intronic to report the closest exons (upstream and downstream) for intronic variants.

Related to request: Ensembl/ensembl-vep#1834

@dglemos dglemos marked this pull request as ready for review February 13, 2025 16:29
@olaaustine olaaustine self-requested a review February 14, 2025 10:01
Copy link
Contributor

@olaaustine olaaustine left a comment

Choose a reason for hiding this comment

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

Thanks for this PR @dglemos
LGTM, just some minor comments

@@ -63,6 +71,7 @@ my $char_sep = "|";

my %CONFIG = (
max_range => 10000,
intronic => 0
);

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggesting we change the get_header_info since we support intron_variants now


my @exons_tmp;
# Reverse strand we get the exons from the end of the list
if($tva->transcript->strand < 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggesting that we just directly modify the $exons like this

if ($tva->transcript->strand < 0) {
@$exons = ($exons->[-$intron_number], $exons->[-($intron_number + 1)]);
}
else {
@$exons = ($exons->[$intron_number - 1], $exons->[$intron_number]);  
}

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