Merge branch 'develop' into features/JAL-2094_colourInterface
[jalview.git] / src / jalview / io / AlignFile.java
index 2b8f127..5760fbe 100755 (executable)
@@ -89,14 +89,14 @@ public abstract class AlignFile extends FileParse
   /**
    * Constructor which parses the data from a file of some specified type.
    * 
-   * @param inFile
-   *          Filename to read from.
+   * @param dataObject
+   *          Filename, URL or Pasted String to read from.
    * @param type
-   *          What type of file to read from (File, URL)
+   *          What type of file to read from (File, URL, Pasted String)
    */
-  public AlignFile(String inFile, String type) throws IOException
+  public AlignFile(String dataObject, String type) throws IOException
   {
-    this(true, inFile, type);
+    this(true, dataObject, type);
   }
 
   /**
@@ -105,16 +105,16 @@ public abstract class AlignFile extends FileParse
    * 
    * @param parseImmediately
    *          if false, need to call 'doParse()' to begin parsing data
-   * @param inFile
-   *          Filename to read from.
+   * @param dataObject
+   *          Filename, URL or Pasted String to read from.
    * @param type
    *          What type of file to read from (File, URL)
    * @throws IOException
    */
-  public AlignFile(boolean parseImmediately, String inFile, String type)
+  public AlignFile(boolean parseImmediately, String dataObject, String type)
           throws IOException
   {
-    super(inFile, type);
+    super(dataObject, type);
     initData();
     if (parseImmediately)
     {
@@ -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
     {