Skip to content

Commit

Permalink
Merge branch 'postreleasefix/96' into release/96
Browse files Browse the repository at this point in the history
  • Loading branch information
at7 committed Jun 18, 2019
2 parents d275165 + 3ba3f41 commit ed24548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AncestralAllele.pm
Expand Up @@ -242,6 +242,7 @@ sub fasta_db {
sub get_sr_name {
my $self = shift;
my $sr_name = shift;
my $new_sr_name = $sr_name;

my $map = $self->fasta_name_map;
my $fasta_db = $self->fasta_db;
Expand All @@ -252,13 +253,13 @@ sub get_sr_name {
) {
if($map->{$alt}) {
print STDERR "USING SYNONYM $alt FOR $sr_name\n" if $DEBUG;
$sr_name = $alt;
$new_sr_name = $alt;
last;
}
}
}

return $map->{$sr_name} || undef;
return $map->{$new_sr_name} || undef;
}

sub fasta_name_map {
Expand Down

0 comments on commit ed24548

Please sign in to comment.