git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
javadoc
[jalview.git]
/
src
/
jalview
/
io
/
JPredFile.java
diff --git
a/src/jalview/io/JPredFile.java
b/src/jalview/io/JPredFile.java
index
1e1b8bf
..
a038cac
100755
(executable)
--- a/
src/jalview/io/JPredFile.java
+++ b/
src/jalview/io/JPredFile.java
@@
-304,10
+304,10
@@
public class JPredFile extends AlignFile
seqs.addElement(newSeq);
}
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
{
// 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
{
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);
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();
throw ex;
}
this.annotations = new Vector();