void FastaMap::readFastaFile(string inFileName) {
try {
ifstream in;
- openInputFile(inFileName, in);
+ m->openInputFile(inFileName, in);
string name, sequence, line;
sequence = "";
string temp;
// data[sequence].groupnumber++;
}
}
- gobble(in);
+ m->gobble(in);
}
in.close();
}
void FastaMap::readFastaFile(string inFastaFile, string oldNameFileName){ //prints data
ifstream oldNameFile;
- openInputFile(oldNameFileName, oldNameFile);
+ m->openInputFile(oldNameFileName, oldNameFile);
map<string,string> oldNameMap;
string name, list;
oldNameFile >> name >> list;
oldNameMap[name] = list;
- gobble(oldNameFile);
+ m->gobble(oldNameFile);
}
oldNameFile.close();
ifstream inFASTA;
- openInputFile(inFastaFile, inFASTA);
+ m->openInputFile(inFastaFile, inFASTA);
string sequence;
while(!inFASTA.eof()){
if (m->control_pressed) { break; }
// data[sequence].groupnumber++;
}
}
- gobble(inFASTA);
+ m->gobble(inFASTA);
}
void FastaMap::printNamesFile(string outFileName){ //prints data
try {
ofstream outFile;
- openOutputFile(outFileName, outFile);
+ m->openOutputFile(outFileName, outFile);
// 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++) {
void FastaMap::printCondensedFasta(string outFileName){ //prints data
try {
ofstream out;
- openOutputFile(outFileName, out);
+ m->openOutputFile(outFileName, out);
//creates a fasta file
for (map<string,group>::iterator it = data.begin(); it != data.end(); it++) {
if (m->control_pressed) { break; }