- string names = list->get(smallRow);
- while (names.find_first_of(',') != -1) {
- //get name from bin
- string name = names.substr(0,names.find_first_of(','));
- //save name and bin number
- seq2Bin[name] = smallCol;
- names = names.substr(names.find_first_of(',')+1, names.length());
- }
-
- //get last name
- seq2Bin[names] = smallCol;
+ string names = list->get(smallRow);
+ vector<string> binnames;
+ m->splitAtComma(names, binnames);
+ for (int j = 0; j < binnames.size(); j++) {
+ //save name and bin number
+ seq2Bin[binnames[j]] = smallCol;
+ }