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
),\r
getSequenceAt(i).getStart(),\r
getSequenceAt(i).getEnd());\r
+\r
+ getSequenceAt(i).setDatasetSequence(seqs[i]);\r
}\r
\r
dataset = new Alignment(seqs);\r
*/\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