}
data = data.toUpperCase();
+ if (data.startsWith("#MEGA"))
+ {
+ reply = "MEGA";
+ break;
+ }
if (data.startsWith("##GFF-VERSION"))
{
reply = GFF3File;
{
break;
}
+ if (data == null)
+ {
+ break;
+ }
}
if (data.indexOf("{\"") > -1)
break;
}
-
/*
* // TODO comment out SimpleBLAST identification for Jalview 2.4.1 else
* if (!lineswereskipped && data.indexOf("BLAST")<4) { reply =
* "SimpleBLAST"; break;
- *
+ *
* } // end comments for Jalview 2.4.1
*/
else if (!lineswereskipped && data.charAt(0) != '*'
&& data.charAt(0) != ' '
&& data.indexOf(":") < data.indexOf(",")) // &&
- // data.indexOf(",")<data.indexOf(",",
- // data.indexOf(",")))
+ // data.indexOf(",")<data.indexOf(",",
+ // data.indexOf(",")))
{
// file looks like a concise JNet file
reply = "JnetFile";
if (length == 0)
{
System.err
- .println("File Identification failed! - Empty file was read.");
+ .println("File Identification failed! - Empty file was read.");
return "EMPTY DATA FILE";
}
return reply;