GroupMap::GroupMap(string filename) {
groupFileName = filename;
openInputFile(filename, fileHandle);
+ index = 0;
}
/************************************************************/
fileHandle.close();
}
/************************************************************/
-
-int GroupMap::getNumGroups() {
-
- return namesOfGroups.size();
-
-}
+int GroupMap::getNumGroups() { return namesOfGroups.size(); }
/************************************************************/
string GroupMap::getGroup(string sequenceName) {
}else {
return "not found";
}
-
}
/************************************************************/
-
+void GroupMap::setGroup(string sequenceName, string groupN) {
+ groupmap[sequenceName] = groupN;
+}
+/************************************************************/
void GroupMap::setNamesOfGroups(string seqGroup) {
int i, count;
count = 0;
}
if (count == namesOfGroups.size()) {
namesOfGroups.push_back(seqGroup); //new group
+ groupIndex[seqGroup] = index;
+ index++;
}
}