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

ENSVAR-6654 & ENSVAR-6381 #1149

Open
wants to merge 2 commits into
base: postreleasefix/114
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/Bio/EnsEMBL/Variation/Utils/VariationEffect.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1346,10 +1346,10 @@ sub ref_eq_alt_sequence {

my $final_stop_length = length($final_stop) if defined($final_stop) ne '';

# 1 is if the ref_pep and the first letter of the alt_pep is the same and the alt_pep has * in it
# 1 is if the ref_pep and the first letter of the alt_pep is the same and the alt_pep has * in it, lot of bug complaints with this step.
# 2 is the ref_seq eq $mut_substring and the final stop length is less than 3
# 3 is * in ref_pep and the same index position exists for both the ref and alt pep
return 1 if ( ($ref_pep eq substr($alt_pep, 0, 1) && $alt_pep =~ /\*/) ||
# 3 is * in ref_pep and the same index position exists for both the ref and alt pep
return 1 if (
($ref_seq eq $mut_substring && defined($final_stop_length) && $final_stop_length < 3) || ( $ref_pep =~ /\*/ && (index($ref_pep, "*") + 1 == index($alt_pep, "*") + 1) ));
return 0;
}
Expand Down