#include "fullmatrix.h"
-/**************************************************************************
-FullMatrix::FullMatrix(ifstream& in) {
-
-}
-~FullMatrix::FullMatrix(){}
+/**************************************************************************/
+//This constructor reads a distance matrix file and stores the data in the matrix.
+FullMatrix::FullMatrix(ifstream& f) {
+ try{
+ f >> numSeqs;
+
- int FullMatrix::getNumSeqs(){}
-*/
\ No newline at end of file
+ }
+ catch(exception& e) {
+ cout << "Standard Error: " << e.what() << " has occurred in the FullMatrix class Function FullMatrix. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ exit(1);
+ }
+ catch(...) {
+ cout << "An unknown error has occurred in the FullMatrix class function FullMatrix. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ exit(1);
+ }
+}
+/**************************************************************************/
+int FullMatrix::getNumSeqs(){ return numSeqs; }
+/**************************************************************************/
\ No newline at end of file
allGroups = allGroups.substr(0, allGroups.length()-1);
}
}else{//user has enter "all" and wants the default groups
+ globaldata->Groups.clear();
for (int i = 0; i < tmap->namesOfGroups.size(); i++) {
globaldata->Groups.push_back(tmap->namesOfGroups[i]);
numGroups++;
allGroups = allGroups.substr(0, allGroups.length()-1);
}
}else{//user has enter "all" and wants the default groups
+ globaldata->Groups.clear();
for (int i = 0; i < tmap->namesOfGroups.size(); i++) {
globaldata->Groups.push_back(tmap->namesOfGroups[i]);
numGroups++;