Merge branch 'servlets'
[proteocache.git] / datadb / compbio / cassandra / JpredParserHTTP.java
index 2167a2d..129d8d1 100644 (file)
@@ -56,8 +56,8 @@ public class JpredParserHTTP implements JpredParser {
        private String parsePredictions(final InputStream stream, String jobid) throws FileNotFoundException {
                final FastaReader fr = new FastaReader(stream);
                String protein = "";
-               alignment = new ArrayList<FastaSequence>();
-               predictions = new ArrayList<FastaSequence>();
+//             alignment = new ArrayList<FastaSequence>();
+//             predictions = new ArrayList<FastaSequence>();
                while (fr.hasNext()) {
                        final FastaSequence fs = fr.next();
                        String seqid = fs.getId();
@@ -86,6 +86,8 @@ public class JpredParserHTTP implements JpredParser {
        }
 
        private int analyseJob(String[] jobinfo) throws IOException {
+               alignment = new ArrayList<FastaSequence>();
+               predictions = new ArrayList<FastaSequence>();
                boolean running = true;
                boolean ConcisefileExists = false;
                boolean LogfileExists = false;