Apply formatting
[proteocache.git] / datadb / compbio / cassandra / readers / PredictionReader.java
index b7613a3..73e7dbf 100644 (file)
@@ -8,19 +8,19 @@ import com.datastax.driver.core.ResultSet;
 import com.datastax.driver.core.Row;
 
 public class PredictionReader extends CassandraReader {
-       
+
        public PredictionReader() {
                super();
        }
-       
+
        /**
         * query: protein feature
         * 
-        *  @param feature
-        *      a feature of secondary structure: Helix or Beta Sheet
-        *  
-        *  @param percent
-        *      fraction the feature in the protein
+        * @param feature
+        *            a feature of secondary structure: Helix or Beta Sheet
+        * 
+        * @param percent
+        *            fraction the feature in the protein
         * 
         * @return Map<String, String> to the controller SSFeaturesController
         * 
@@ -34,8 +34,8 @@ public class PredictionReader extends CassandraReader {
                for (Row r : rows) {
                        String prot = r.getString("Protein");
                        String prediction = findJnetpred(r.getMap("Predictions", String.class, String.class));
-                       if (prot != null || prediction != null) {
-                               if (prediction.replaceAll("[^"+feature+"]", "").length() > prediction.length() * percent / 100) {
+                       if (prot != null || prediction != null) {
+                               if (prediction.replaceAll("[^" + feature + "]", "").length() > prediction.length() * percent / 100) {
                                        query.put(prot, prediction);
                                }
                        }
@@ -43,9 +43,9 @@ public class PredictionReader extends CassandraReader {
                return query;
        }
 
-       private String findJnetpred (Map<String,String> pred) {
+       private String findJnetpred(Map<String, String> pred) {
                if (pred != null) {
-                       if (pred.containsKey("jnetpred")) 
+                       if (pred.containsKey("jnetpred"))
                                return pred.get("jnetpred");
                }
                return null;