{
ex.printStackTrace();
System.out.println("Problem reading annotation file: " + ex);
+ if (nlinesread>0) {
+ System.out.println("Last read line "+nlinesread+": '"+lastread+"' (first 80 chars) ...");
+ }
return false;
}
return false;
}
-
+ long nlinesread=0;
+ String lastread="";
public boolean parseAnnotationFrom(AlignmentI al, BufferedReader in)
throws Exception
{
+ nlinesread = 0;
boolean modified = false;
String groupRef = null;
Hashtable groupRefRows = new Hashtable();
boolean jvAnnotationFile = false;
while ((line = in.readLine()) != null)
{
+ nlinesread++;lastread = new String(line);
if (line.indexOf("#") == 0)
{
continue;
while ((line = in.readLine()) != null)
{
+ nlinesread++;lastread = new String(line);
if (line.indexOf("#") == 0
|| line.indexOf("JALVIEW_ANNOTATION") > -1
|| line.length() == 0)