Skip to content

Commit

Permalink
removed a now useless check.
Browse files Browse the repository at this point in the history
  • Loading branch information
stela2502 committed Nov 14, 2023
1 parent 639bdce commit 0105764
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions this/src/fast_mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,9 @@ impl FastMapper{
let mut good = Vec::<usize>::with_capacity( genes.len() );
let most_matches = genes.values().max().unwrap_or(&0);
let mut best_gene = 0; //otherwise this throws an error later
let mut genes_with_best_matches = 0;
for ((gene_id, level ), matches) in genes{
if level == &prob_level && matches == most_matches {
good.push( *gene_id );
genes_with_best_matches +=1;
}
}
if good.len() ==1 {
Expand All @@ -398,13 +396,6 @@ impl FastMapper{
}
return true
}
if genes_with_best_matches == 1{
ret.push( best_gene );
if report {
eprintln!("3 This was selected as good: {} or {}\n",best_gene, self.names_store[best_gene] )
}
return true
}

// now we have one possibility left -> As many int reads as there are normal reads.
// that is exactly what one would expect if it is actually a normal read
Expand Down

0 comments on commit 0105764

Please sign in to comment.