git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0405267
)
Fasta files with * read not identified as BLC
author
amwaterhouse
<Andrew Waterhouse>
Mon, 13 Nov 2006 16:11:09 +0000
(16:11 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Mon, 13 Nov 2006 16:11:09 +0000
(16:11 +0000)
src/jalview/io/IdentifyFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/IdentifyFile.java
b/src/jalview/io/IdentifyFile.java
index
9a248e5
..
024da61
100755
(executable)
--- a/
src/jalview/io/IdentifyFile.java
+++ b/
src/jalview/io/IdentifyFile.java
@@
-122,10
+122,16
@@
public class IdentifyFile
// could be BLC file, read next line to confirm
\r
data = reader.readLine();
\r
\r
- if (data.indexOf(">") > -1 || data.indexOf("*") >-1 )
\r
+ if (data.indexOf(">") > -1)
\r
{
\r
reply = "BLC";
\r
}
\r
+ //Is this a single line BLC file?
\r
+ data = reader.readLine();
\r
+ if(data!=null && data.length()==1)
\r
+ {
\r
+ reply = "BLC";
\r
+ }
\r
else
\r
{
\r
reply = "FASTA";
\r