{\r
public static String Identify(String file, String protocol)\r
{\r
- String reply = "error";\r
+ String reply = "PFAM";\r
try{\r
\r
BufferedReader reader = null;\r
reply = "PIR";\r
break;\r
}\r
- else if(data.indexOf(">")==0)\r
+ else if(data.indexOf(">")>-1)\r
{\r
// could be BLC file\r
data = reader.readLine();\r
- if(data.indexOf(">")==0)\r
+ if(data.indexOf(">")>-1)\r
reply = "BLC";\r
else\r
reply = "FASTA";\r
\r
break;\r
}\r
- else\r
- {\r
- reply = "PFAM";\r
- break;\r
- }\r
-\r
}\r
reader.close();\r
}\r