Simplify the code
[proteocache.git] / datadb / compbio / cassandra / readers / SequenceReader.java
index 3c0d6e6..e64d215 100644 (file)
@@ -56,11 +56,10 @@ public class SequenceReader extends CassandraReader {
                                String protein = r.getString("Protein");
                                if (protein.matches("(.*)" + sequence + "(.*)")) {
                                        ProteinBean foundsequence = new ProteinBean(protein, r.getMap("Predictions", String.class, String.class));
+                                       foundsequence.setJobid(r.getString("JobID"));
                                        query.add(foundsequence);
                                }
                        }
-               }
-               if (searchtype.equals("partial")) {
                        for (ProteinBean entry : query) {
                                entry.setSubProt(CreateSubprotein(entry.getSequence(), sequence));
                        }