for (ScoreModelI sm : scoreModels.getModels())
{
if ((!forPasimap || sm instanceof ScoreMatrix)
- && (!nucleotide && sm.isProtein() || nucleotide && sm.isDNA()
- || sm.isSecondaryStructure() && ssPresent))
+ && ((!nucleotide && sm.isProtein()) || (nucleotide && sm.isDNA()))
+ && (!sm.isSecondaryStructure() || ssPresent))
{
filtered.add(sm);
assertEquals(filtered.get(2).getName(), "Mat3di");
assertEquals(filtered.get(3).getName(), "PID");
assertEquals(filtered.get(4).getName(), "Sequence Feature Similarity");
- assertEquals(filtered.get(4).getName(),
+ assertEquals(filtered.get(5).getName(),
"Secondary Structure Similarity");
assertEquals(CalculationChooser
.getApplicableScoreModels(isDna, isPca, isSS, true).size(),
- (isDna) ? 1 : 2);
+ (isDna) ? 1 : 3);
}
}
}