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:
38c2f53
)
Single seq Blc file detection
author
amwaterhouse
<Andrew Waterhouse>
Tue, 14 Nov 2006 12:21:44 +0000
(12:21 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 14 Nov 2006 12:21:44 +0000
(12:21 +0000)
src/jalview/io/IdentifyFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/IdentifyFile.java
b/src/jalview/io/IdentifyFile.java
index
024da61
..
e97ec40
100755
(executable)
--- a/
src/jalview/io/IdentifyFile.java
+++ b/
src/jalview/io/IdentifyFile.java
@@
-126,15
+126,21
@@
public class IdentifyFile
{
\r
reply = "BLC";
\r
}
\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
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