*/\r
public class SeqsetUtils\r
{\r
+\r
/**\r
* Store essential properties of a sequence in a hashtable for later recovery\r
* Keys are Name, Start, End, SeqFeatures, PdbId\r
Hashtable map = new Hashtable();\r
String[] un_names = new String[sequences.length];\r
\r
- if (!write_names)\r
+ for (int i = 0; i < sequences.length; i++)\r
{\r
- for (int i = 0; i < sequences.length; i++)\r
- {\r
- String safename = new String("Sequence" + i);\r
- map.put(safename, SeqCharacterHash(sequences[i]));\r
+ String safename = unique_name(i);\r
+ map.put(safename, SeqCharacterHash(sequences[i]));\r
\r
- if (write_names)\r
- {\r
- sequences[i].setName(safename);\r
- }\r
+ if (write_names)\r
+ {\r
+ sequences[i].setName(safename);\r
}\r
}\r
\r
+\r
return map;\r
}\r
\r