for (MotifType motif: motifList) {
CanFindPvalue pvalueCalculator;
if (thresholds_folder == null) {
pvalueCalculator = new FindPvalueAPE<MotifType, BackgroundType>(motif, background, discretizer, max_hash_size);
} else {
pvalueCalculator = new FindPvalueBsearchBuilder(thresholds_folder).pvalueCalculator(motif);
}
pwmCollection.add(new ThresholdEvaluator(motif, pvalueCalculator, motif.getName()));
}
}