}\r
}\r
\r
+ public SequenceI findShortName(String name)\r
+ {\r
+ int i = 0;\r
+\r
+ while (i < sequences.size())\r
+ {\r
+ if (getSequenceAt(i).getShortName().equals(name))\r
+ {\r
+ return getSequenceAt(i);\r
+ }\r
+\r
+ i++;\r
+ }\r
+\r
+ return null;\r
+ }\r
+\r
/** */\r
public SequenceI findName(String name)\r
{\r
\r
while (i < sequences.size())\r
{\r
- SequenceI s = getSequenceAt(i);\r
-\r
- if (s.getName().equals(name))\r
+ if (getSequenceAt(i).getName().equals(name))\r
{\r
- return s;\r
+ return getSequenceAt(i);\r
}\r
\r
i++;\r
*/\r
public SequenceI findName(String name);\r
\r
+ public SequenceI findShortName(String name);\r
+\r
\r
/**\r
* Finds index of a given sequence in the alignment.\r
\r
public void setProvenance(Provenance prov);\r
\r
+\r
+\r
}\r