-
Notifications
You must be signed in to change notification settings - Fork 121
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
base: postreleasefix/114
Are you sure you want to change the base?
Update NearestExonJB #771
Conversation
There was a problem hiding this 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 | |||
); | |||
|
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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]);
}
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