- for (Map.Entry<String, String> entry : result.entrySet()) {
- String pred = entry.getValue();
- if (pred.replaceAll("[^" + feature + "]", "").length() > pred.length() * percent / 100 && (!entry.getKey().equals(""))) {
- // if (!entry.getKey().equals(""))
- query.put(entry.getKey(), pred);
+ for (Map.Entry<String, String> entry : results.entrySet()) {
+ String prediction = entry.getValue();
+ String protein = entry.getKey();
+ if (prediction.replaceAll("[^" + feature + "]", "").length() > prediction.length() * percent / 100 && !protein.equals("")) {
+ query.put(protein, prediction);