Commit 9f0d0079 authored by Mathieu Giraud's avatar Mathieu Giraud

core/affectanalyser.cpp: .getMaximum(), simplify main test

Two conditions were always met.
parent c53fca6c
......@@ -178,9 +178,7 @@ affect_infos KmerAffectAnalyser::getMaximum(const KmerAffect &before,
2) there should be at least one 'before' and one 'after' (? CHECK ?)
*/
if ((results.nb_after_right >= results.nb_before_right*ratioMin)
&& (results.nb_after_right >= results.nb_after_left*ratioMin)
&& (results.nb_before_left >= results.nb_after_left*ratioMin)
if ((results.nb_after_right >= results.nb_after_left*ratioMin)
&& (results.nb_before_left >= results.nb_before_right*ratioMin)
&& (results.nb_after_right > 0 || results.nb_before_right == 0)
&& currentValue < results.max_value
......
Markdown is supported
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