Skip to content
Snippets Groups Projects
Commit 728d5fb9 authored by Arne Stabenau's avatar Arne Stabenau
Browse files

is_known uses eq now instead of /KNOWN/ so it wiill ignore knownxref tags

parent 33523202
No related branches found
No related tags found
No related merge requests found
...@@ -263,12 +263,12 @@ sub is_known{ ...@@ -263,12 +263,12 @@ sub is_known{
my ($self) = @_; my ($self) = @_;
for my $entry ( @{$self->get_all_DBLinks()} ) { for my $entry ( @{$self->get_all_DBLinks()} ) {
return 1 if $entry->status =~ /KNOWN/; return 1 if uc($entry->status) eq "KNOWN";
} }
foreach my $trans ( @{$self->get_all_Transcripts} ) { foreach my $trans ( @{$self->get_all_Transcripts} ) {
for my $entry ( @{$trans->get_all_DBLinks()} ) { for my $entry ( @{$trans->get_all_DBLinks()} ) {
return 1 if $entry->status =~ /KNOWN/; return 1 if uc($entry->status) eq "KNOWN";
} }
} }
......
...@@ -293,7 +293,7 @@ sub external_name { ...@@ -293,7 +293,7 @@ sub external_name {
sub is_known { sub is_known {
my $self = shift; my $self = shift;
for my $entry ( @{$self->get_all_DBLinks()} ) { for my $entry ( @{$self->get_all_DBLinks()} ) {
return 1 if $entry->status =~ /KNOWN/ ; return 1 if uc($entry->status) eq "KNOWN" ;
} }
return 0; return 0;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment