Skip to content

Commit

Permalink
Make the option min-score and min-length work in centrifuge-kreport w…
Browse files Browse the repository at this point in the history
…hen using lca.
  • Loading branch information
mourisl committed May 10, 2020
1 parent 6cc874e commit 7ba4885
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions centrifuge-kreport
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ if ($is_cnts_table) {
my $queryLength = $cols[ $headerMap{ "queryLength" } ] ;
my $numMatches = $cols[ $headerMap{ "numMatches" } ] ;

next if defined $min_length && $hitLength < $min_length;
next if defined $min_score && $score < $min_score;

$taxID = 1 if ( !isTaxIDInTree( $taxID ) ) ;

if ($no_lca) {
next if defined $min_length && $hitLength < $min_length;
next if defined $min_score && $score < $min_score;
$taxo_counts{$taxID} += 1/$numMatches;
$seq_count += 1/$numMatches;
} else {
Expand Down

0 comments on commit 7ba4885

Please sign in to comment.