apply gpl development license
[jalview.git] / src / jalview / io / JPredFile.java
index 1e1b8bf..185674b 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -304,10 +304,10 @@ public class JPredFile extends AlignFile
 
       seqs.addElement(newSeq);
     }
-    if (seqs.size() > 0)
+    if (seqs.size() > 0 && QuerySeqPosition>-1)
     {
       // try to make annotation for a prediction only input (default if no
-      // alignment is given)
+      // alignment is given and prediction contains a QUERY or align;sequence_id line)
       Alignment tal = new Alignment(this.getSeqsAsArray());
       try
       {
@@ -319,6 +319,7 @@ public class JPredFile extends AlignFile
         IOException ex = new IOException(
                 "Couldn't parse concise annotation for prediction profile.\n"
                         + e);
+        e.printStackTrace(); // java 1.1 does not have : ex.setStackTrace(e.getStackTrace());
         throw ex;
       }
       this.annotations = new Vector();