Skip to content
Snippets Groups Projects
Commit cf7f9a21 authored by Brankovics, Balazs's avatar Brankovics, Balazs
Browse files

bug fixed to allow AS:i:0 as valid score

parent 713c7747
No related branches found
No related tags found
No related merge requests found
...@@ -422,7 +422,7 @@ sub update_pair { ...@@ -422,7 +422,7 @@ sub update_pair {
my %hit = %$hitref; my %hit = %$hitref;
if ($term eq 'AS:i') { if ($term eq 'AS:i') {
unless ($hit{'AS:i'}) { unless (defined $hit{'AS:i'}) {
# Make SAM output invalid to make the mistake obvious and die with error # Make SAM output invalid to make the mistake obvious and die with error
print "ERROR: Aborted, due to missing alignment score ('AS:i:<int>' column). Check STDERR for more info.\n"; print "ERROR: Aborted, due to missing alignment score ('AS:i:<int>' column). Check STDERR for more info.\n";
die "ERROR: Hit does not have an alignment score ('AS:i:<int>' column).\n" . die "ERROR: Hit does not have an alignment score ('AS:i:<int>' column).\n" .
...@@ -431,7 +431,7 @@ sub update_pair { ...@@ -431,7 +431,7 @@ sub update_pair {
} }
$pair->{$term} += $hit{$term}; $pair->{$term} += $hit{$term};
} elsif ($term eq 'BS:f') { } elsif ($term eq 'BS:f') {
unless ($hit{'BS:f'}) { unless (defined $hit{'BS:f'}) {
# Make SAM output invalid to make the mistake obvious and die with error # Make SAM output invalid to make the mistake obvious and die with error
print "ERROR: Aborted, due to missing bitscore ('BS:f:<num>' column). Check STDERR for more info.\n"; print "ERROR: Aborted, due to missing bitscore ('BS:f:<num>' column). Check STDERR for more info.\n";
die "ERROR: Hit does not have a bitscore ('BS:f:<num>' column).\n" . die "ERROR: Hit does not have a bitscore ('BS:f:<num>' column).\n" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment