ReadCluster::ReadCluster(string distfile, float c){
globaldata = GlobalData::getInstance();
+ m = MothurOut::getInstance();
distFile = distfile;
cutoff = c;
}
}
catch(exception& e) {
- errorOut(e, "ReadCluster", "read");
+ m->errorOut(e, "ReadCluster", "read");
exit(1);
}
}
}
else{
list = new ListVector(nameMap->getListVector());
- if(nameMap->count(name)==0){ mothurOut("Error: Sequence '" + name + "' was not found in the names file, please correct"); mothurOutEndLine(); }
+ if(nameMap->count(name)==0){ m->mothurOut("Error: Sequence '" + name + "' was not found in the names file, please correct"); m->mothurOutEndLine(); }
}
char d;
}
else{
- if(nameMap->count(name)==0){ mothurOut("Error: Sequence '" + name + "' was not found in the names file, please correct"); mothurOutEndLine(); }
+ if(nameMap->count(name)==0){ m->mothurOut("Error: Sequence '" + name + "' was not found in the names file, please correct"); m->mothurOutEndLine(); }
for(int j=0;j<i;j++){
in >> distance;
}
}
else{
- if(nameMap->count(name)==0){ mothurOut("Error: Sequence '" + name + "' was not found in the names file, please correct"); mothurOutEndLine(); }
+ if(nameMap->count(name)==0){ m->mothurOut("Error: Sequence '" + name + "' was not found in the names file, please correct"); m->mothurOutEndLine(); }
for(int j=0;j<nseqs;j++){
in >> distance;
distFile = outputFile;
}
catch(exception& e) {
- errorOut(e, "ReadCluster", "convertPhylip2Column");
+ m->errorOut(e, "ReadCluster", "convertPhylip2Column");
exit(1);
}
}