Skip to content
Snippets Groups Projects
Commit f3a411ab authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Make a difference between eval() failure and BZX in peptide sequence.

parent 286ab8d2
No related branches found
No related tags found
No related merge requests found
......@@ -254,6 +254,14 @@ sub get_pepstats {
my $peptide_seq ;
eval { $peptide_seq = $translation->seq};
if ($@) {
warn("PEPSTAT: eval() failed: $!");
return {};
} elsif ( $peptide_seq =~ m/[BZX]/ig ) {
return {};
}
return {} if ($@ || $peptide_seq =~ m/[BZX]/ig);
if( $peptide_seq !~ /\n$/ ){ $peptide_seq .= "\n" }
$peptide_seq =~ s/\*$//;
......
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