string temp;
while(!in.eof()){
+ if (m->control_pressed) { break; }
+
Sequence currSeq(in);
name = currSeq.getName();
map<string,string> oldNameMap;
string name, list;
while(!oldNameFile.eof()){
+ if (m->control_pressed) { break; }
+
oldNameFile >> name >> list;
oldNameMap[name] = list;
gobble(oldNameFile);
openInputFile(inFastaFile, inFASTA);
string sequence;
while(!inFASTA.eof()){
+ if (m->control_pressed) { break; }
+
Sequence currSeq(inFASTA);
name = currSeq.getName();
// two column file created with groupname and them list of identical sequence names
for (map<string,group>::iterator it = data.begin(); it != data.end(); it++) {
+ if (m->control_pressed) { break; }
outFile << it->second.groupname << '\t' << it->second.names << endl;
}
outFile.close();
openOutputFile(outFileName, out);
//creates a fasta file
for (map<string,group>::iterator it = data.begin(); it != data.end(); it++) {
+ if (m->control_pressed) { break; }
out << ">" << it->second.groupname << endl;
out << it->first << endl;
}