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
Watch out for - symbol lin jnet files
[jalview.git]
/
src
/
jalview
/
io
/
IdentifyFile.java
diff --git
a/src/jalview/io/IdentifyFile.java
b/src/jalview/io/IdentifyFile.java
index
9a248e5
..
e97ec40
100755
(executable)
--- a/
src/jalview/io/IdentifyFile.java
+++ b/
src/jalview/io/IdentifyFile.java
@@
-122,13
+122,25
@@
public class IdentifyFile
// could be BLC file, read next line to confirm
\r
data = reader.readLine();
\r
\r
// 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
else
\r
{
\r
{
\r
reply = "BLC";
\r
}
\r
else
\r
{
\r
+ //Is this a single line BLC file?
\r
+ reader.readLine();
\r
+ String data2 = reader.readLine();
\r
+ if ( data2 != null
\r
+ && data.indexOf("*")>-1
\r
+ && data.indexOf("*")==data2.indexOf("*"))
\r
+ {
\r
+ reply = "BLC";
\r
+ }
\r
+ else
\r
+ {
\r
reply = "FASTA";
\r
reply = "FASTA";
\r
+ }
\r
}
\r
\r
break;
\r
}
\r
\r
break;
\r