Find by displayid not used
authoramwaterhouse <Andrew Waterhouse>
Mon, 31 Oct 2005 15:51:11 +0000 (15:51 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 31 Oct 2005 15:51:11 +0000 (15:51 +0000)
src/jalview/datamodel/Alignment.java
src/jalview/datamodel/AlignmentI.java

index 309fdae..d945ec6 100755 (executable)
@@ -471,25 +471,6 @@ public class Alignment implements AlignmentI
         return null;\r
     }\r
 \r
-    /**    */\r
-    public SequenceI findbyDisplayId(String name)\r
-    {\r
-        int i = 0;\r
-\r
-        while (i < sequences.size())\r
-        {\r
-            SequenceI s = getSequenceAt(i);\r
-\r
-            if (s.getDisplayId().equals(name))\r
-            {\r
-                return s;\r
-            }\r
-\r
-            i++;\r
-        }\r
-\r
-        return null;\r
-    }\r
 \r
     /**    */\r
     public int findIndex(SequenceI s)\r
@@ -731,6 +712,8 @@ public class Alignment implements AlignmentI
                                  ),\r
                                  getSequenceAt(i).getStart(),\r
                                  getSequenceAt(i).getEnd());\r
+\r
+          getSequenceAt(i).setDatasetSequence(seqs[i]);\r
         }\r
 \r
         dataset = new Alignment(seqs);\r
index 9ee51e9..be3093c 100755 (executable)
@@ -125,14 +125,6 @@ public interface AlignmentI
      */\r
     public SequenceI findName(String name);\r
 \r
-    /**\r
-     * Finds sequence in alignment using full displayId as query.\r
-     *\r
-     * @param name displayId, ie <em>NAME/25-100</em>\r
-     *\r
-     * @return Sequence matching query, if found. If not found returns null.\r
-     */\r
-    public SequenceI findbyDisplayId(String name);\r
 \r
     /**\r
      * Finds index of a given sequence in the alignment.\r