From: jprocter Date: Tue, 16 Sep 2008 09:09:41 +0000 (+0000) Subject: fix exception raised when JNet concise files with no sequence content are parsed... X-Git-Tag: Jalview_2_4_0b2~52 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f6f2aab696cfcded9c8adeb58c79fc566c9593c3;p=jalview.git fix exception raised when JNet concise files with no sequence content are parsed (c.f. TarO Jnet concise files) --- diff --git a/src/jalview/io/JPredFile.java b/src/jalview/io/JPredFile.java index 1e1b8bf..ec4a89e 100755 --- a/src/jalview/io/JPredFile.java +++ b/src/jalview/io/JPredFile.java @@ -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); + ex.setStackTrace(e.getStackTrace()); throw ex; } this.annotations = new Vector();