JAL-1706 reverted setting start position as too confusing for -ve strand
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 19 Feb 2016 16:45:10 +0000 (16:45 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 19 Feb 2016 16:45:10 +0000 (16:45 +0000)
src/jalview/io/AlignFile.java

index 2b8f127..984eff6 100755 (executable)
@@ -355,24 +355,12 @@ public abstract class AlignFile extends FileParse
       String desc = id.substring(space + 1);
       seq.setDescription(desc);
 
-      if (desc.startsWith("chromosome"))
-      {
-        /*
-         * parse Ensembl style gene description e.g.
-         * chromosome:GRCh38:7:140696688:140721955:1
-         */
-        String[] tokens = desc.split(":");
-        if (tokens.length > 3)
-        {
-          try
-          {
-            seq.setStart(Integer.parseInt(tokens[3]));
-          } catch (NumberFormatException e)
-          {
-            // ignore
-          }
-        }
-      }
+      /*
+       * it is tempting to parse Ensembl style gene description e.g.
+       * chromosome:GRCh38:7:140696688:140721955:1 and set the
+       * start position of the sequence, but this causes much confusion
+       * for reverse strand feature locations
+       */
     }
     else
     {