]> git.donarmstrong.com Git - mothur.git/blob - globaldata.cpp
8b8f9e39b083d9d4329ff500f335d9f4f04cb786
[mothur.git] / globaldata.cpp
1 #include "globaldata.hpp"
2 #include "tree.h"
3 #include "sparsematrix.hpp"
4
5 /*******************************************************/
6
7 /******************************************************/
8 GlobalData* GlobalData::getInstance() {
9         if( _uniqueInstance == 0 ) {
10                 _uniqueInstance = new GlobalData();
11         }
12         return _uniqueInstance;
13 }
14 /*******************************************************/
15
16 /******************************************************/
17 //This function parses through the option string of the command to remove its parameters
18 void GlobalData::parseGlobalData(string commandString, string optionText){
19         try {
20                 commandName = commandString; //save command name to be used by other classes
21                 
22                 //set all non filename paramters to default
23                 reset();
24                 
25                 //clears out data from previous read
26                 if ((commandName == "read.dist") || (commandName == "read.otu") || (commandName == "read.tree")) { 
27                         clear();
28                         gGroupmap = NULL;
29                         gTree.clear();
30                         Treenames.clear();
31                         labels.clear(); lines.clear(); groups.clear();
32                         allLines = 1;
33                 }
34                 
35                 //saves help request
36                 if (commandName =="help") {
37                         helpRequest = optionText;
38                 }
39                 
40                 if (commandName == "libshuff") {
41                         iters = "10000";
42                         cutoff = "1.0";
43                 }
44                 
45                 //set default value for cutoff
46                 if (commandName == "dist.seqs") {       cutoff = "1.0";         }
47
48                 string key, value;              
49                 //reads in parameters and values
50                 if((optionText != "") && (commandName != "help")){
51                         while((optionText.find_first_of(',') != -1)) {  //while there are parameters
52                                 splitAtComma(value, optionText);
53                                 splitAtEquals(key, value);
54                                 
55                                 if (key == "phylip" )   { phylipfile = value; inputFileName = value; fileroot = value; format = "phylip";       }
56                                 if (key == "column" )   { columnfile = value; inputFileName = value; fileroot = value; format = "column";       }
57                                 if (key == "list" )             { listfile = value; inputFileName = value; fileroot = value; format = "list";           }
58                                 if (key == "rabund" )   { rabundfile = value; inputFileName = value; fileroot = value; format = "rabund";       }
59                                 if (key == "sabund" )   { sabundfile = value; inputFileName = value; fileroot = value; format = "sabund";       } 
60                                 if (key == "fasta" )    { fastafile = value; inputFileName = value; fileroot = value; format = "fasta";         }
61                                 if (key == "nexus" )    { nexusfile = value; inputFileName = value; fileroot = value; format = "nexus";         } 
62                                 if (key == "clustal" )  { clustalfile = value; inputFileName = value; fileroot = value; format = "clustal"; }
63                                 if (key == "tree" )             { treefile = value; inputFileName = value; fileroot = value; format = "tree";           }
64                                 if (key == "shared" )   { sharedfile = value; inputFileName = value; fileroot = value; format = "sharedfile";   }
65                                 if (key == "name" )             { namefile = value;             }
66                                 if (key == "order" )    { orderfile = value;    }
67                                 if (key == "group" )    { groupfile = value;    }
68                                 if (key == "cutoff" )           { cutoff = value;               }
69                                 if (key == "precision" )        { precision = value;    }
70                                 if (key == "iters" )            { iters = value;                }
71                                 if (key == "jumble" )           { jumble = value;               }
72                                 if (key == "freq" )                     { freq = value;                 }
73                                 if (key == "method" )           { method = value;               }
74                                 if (key == "fileroot" )         { fileroot = value;             }
75                                 if (key == "abund" )        { abund = value;        }
76                                 if (key == "random" )           { randomtree = value;   }
77                                 if (key == "calc")                      { calc = value;                 }
78                                 if (key == "step")                      { step = value;                 }
79                                 if (key == "form")                      { form = value;                 }
80                                 if (key == "sorted")            { sorted = value;               }
81                                 if (key == "vertical")          { vertical = value;             }
82                                 if (key == "trump")                 { trump = value;            }
83                                 if (key == "filter")            { filter = value;               }
84                                 if (key == "soft")                  { soft = value;                 }
85                                 if (key == "scale")                     { scale = value;                }
86                                 if (key == "ends" )                     { ends = value;                 }
87                                 if (key == "processors" )       { processors = value;   }
88                                 if (key == "size" )         { size = value;         }
89                                 
90
91                                 
92
93                                 if (key == "template")          { templatefile = value; }
94                                 if (key == "search")            { search = value;               }
95                                 if (key == "ksize")                     { ksize = value;                }
96                                 if (key == "align")                 { align = value;            }
97                                 if (key == "match")                     { match = value;                }
98                                 if (key == "mismatch")          { mismatch = value;         }
99                                 if (key == "gapopen")           { gapopen = value;              }
100                                 if (key == "gapextend" )        { gapextend = value;    }
101                                 
102                                 if (key == "line") {//stores lines to be used in a set
103                                         lines.clear();
104                                         labels.clear();
105                                         line = value;
106                                         label = "";
107                                         splitAtDash(value, lines);
108                                         allLines = 0;
109                                 }
110                                 if (key == "label") {//stores labels to be used in a set
111                                         labels.clear();
112                                         lines.clear();
113                                         label = value;
114                                         line = "";
115                                         splitAtDash(value, labels);
116                                         allLines = 0;
117                                 }
118
119                                 if (key == "groups") {//stores groups to be used in a vector
120                                         Groups.clear();
121                                         groups = value;
122                                         splitAtDash(value, Groups);
123                                 }
124
125                         }
126                         
127                         //saves the last parameter
128                         value = optionText;
129                         splitAtEquals(key, value);
130                         if (key == "phylip" )   { phylipfile = value; inputFileName = value; fileroot = value; format = "phylip";       }
131                         if (key == "column" )   { columnfile = value; inputFileName = value; fileroot = value; format = "column";       }
132                         if (key == "list" )             { listfile = value; inputFileName = value; fileroot = value; format = "list";           }
133                         if (key == "rabund" )   { rabundfile = value; inputFileName = value; fileroot = value; format = "rabund";       }
134                         if (key == "sabund" )   { sabundfile = value; inputFileName = value; fileroot = value; format = "sabund";       }
135                         if (key == "fasta" )    { fastafile = value; inputFileName = value; fileroot = value; format = "fasta";         }
136                         if (key == "nexus" )    { nexusfile = value; inputFileName = value; fileroot = value; format = "nexus";         }
137                         if (key == "clustal" )  { clustalfile = value; inputFileName = value; fileroot = value; format = "clustal"; } 
138                         if (key == "tree" )             { treefile = value; inputFileName = value; fileroot = value; format = "tree";           } 
139                         if (key == "shared" )   { sharedfile = value; inputFileName = value; fileroot = value; format = "sharedfile";   } 
140                         if (key == "name" )             { namefile = value;             }
141                         if (key == "order" )    { orderfile = value;    }
142                         if (key == "group" )    { groupfile = value;    }
143                         if (key == "cutoff" )           { cutoff = value;               }
144                         if (key == "precision" )        { precision = value;    }
145                         if (key == "iters" )            { iters = value;                }
146                         if (key == "jumble" )           { jumble = value;               }
147                         if (key == "freq" )                     { freq = value;                 }
148                         if (key == "method" )           { method = value;               }
149                         if (key == "fileroot" )         { fileroot = value;             }
150                         if (key == "abund" )        { abund = value;        }
151                         if (key == "random" )           { randomtree = value;   }
152                         if (key == "calc")                      { calc = value;                 }
153                         if (key == "step")                      { step = value;                 }
154                         if (key == "form")                      { form = value;                 }
155                         if (key == "sorted")            { sorted = value;               }
156                         if (key == "vertical")          { vertical = value;             }
157                         if (key == "trump")                 { trump = value;            }
158                         if (key == "filter")            { filter = value;               }
159                         if (key == "soft")                  { soft = value;                 }
160                         if (key == "scale")                     { scale = value;                }
161                         if (key == "ends" )                     { ends = value;                 }
162                         if (key == "processors" )       { processors = value;   }
163                         if (key == "size" )         { size = value;         }
164
165                         if (key == "template")          { templatefile = value; }
166                         if (key == "search")            { search = value;               }
167                         if (key == "ksize")                     { ksize = value;                }
168                         if (key == "align")                 { align = value;            }
169                         if (key == "match")                     { match = value;                }
170                         if (key == "mismatch")          { mismatch = value;         }
171                         if (key == "gapopen")           { gapopen = value;              }
172                         if (key == "gapextend" )        { gapextend = value;    }
173
174                         if (key == "line") {//stores lines to be used in a vector
175                                 lines.clear();
176                                 labels.clear();
177                                 line = value;
178                                 label = "";
179                                 if (line != "all") {  splitAtDash(value, lines);  allLines = 0;  }
180                                 else { allLines = 1;  }
181                         }
182                         
183                         if (key == "label") {//stores lines to be used in a vector
184                                 labels.clear();
185                                 lines.clear();
186                                 label = value;
187                                 line = "";
188                                 if (label != "all") {  splitAtDash(value, labels);  allLines = 0;  }
189                                 else { allLines = 1;  }
190                         }
191                         
192                         if (key == "groups") {//stores groups to be used in a vector
193                                         Groups.clear();
194                                         groups = value;
195                                         splitAtDash(value, Groups);
196                         }
197                 }
198                 
199                 //set format for shared
200                 if ((listfile != "") && (groupfile != "")) { format = "shared"; }
201                 if ((phylipfile != "") && (groupfile != "")) { format = "matrix"; }
202                                 
203                 //input defaults for calculators
204                 if (commandName == "collect.single") {
205
206                         if ((calc == "default") || (calc == "")) { calc = "sobs-chao-ace-jack-shannon-npshannon-simpson-efron-boneh-solow-shen"; }
207                         Estimators.clear();
208                         splitAtDash(calc, Estimators); 
209                 }
210                 if (commandName == "rarefaction.single") {
211                         if ((calc == "default") || (calc == "")) { calc = "sobs"; }
212                         Estimators.clear();
213                         splitAtDash(calc, Estimators); 
214                 }
215                 if (commandName == "collect.shared") {
216
217                         if ((calc == "default") || (calc == "")) { calc = "sharedsobs-sharedchao-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan"; }
218                         Estimators.clear();
219                         splitAtDash(calc, Estimators); 
220                 }
221                 if (commandName == "summary.single") {
222                         if ((calc == "default") || (calc == "")) { calc = "sobs-chao-ace-jack-shannon-npshannon-simpson-efron-boneh-solow-shen"; }
223                         Estimators.clear();
224                         splitAtDash(calc, Estimators); 
225                 }
226                 if (commandName == "summary.shared") {
227                         if ((calc == "default") || (calc == "")) { calc = "sharedsobs-sharedchao-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan"; }
228                         Estimators.clear();
229                         splitAtDash(calc, Estimators); 
230                 }
231                 if (commandName == "rarefaction.shared") {
232                         if ((calc == "default") || (calc == "")) { calc = "sharedobserved"; }
233                         Estimators.clear();
234                         splitAtDash(calc, Estimators); 
235                 }
236                 if (commandName == "dist.seqs") {
237                         if ((calc == "default") || (calc == "")) {  calc = "onegap";  }
238                         Estimators.clear();
239                         splitAtDash(calc, Estimators); 
240                 }
241                 if (commandName == "venn") {
242                         if ((calc == "default") || (calc == "")) { 
243                                 if (format == "list") { calc = "sobs"; }
244                                 else { calc = "sharedsobs"; }
245                         }
246                         Estimators.clear();
247                         splitAtDash(calc, Estimators); 
248                 }
249                 if ((commandName == "tree.shared") || (commandName == "bootstrap.shared")) {
250                         if (calc != "") { 
251                                 Estimators.clear();
252                                 splitAtDash(calc, Estimators);                  
253                         }else { cout << "You have not specified any calculators." << endl; }
254                 }
255
256
257                 //if you have done a read.otu with a groupfile but don't want to use it anymore because you want to do single commands
258                 if ((commandName == "collect.single") || (commandName == "rarefaction.single") || (commandName == "summary.single")) {
259                         if (listfile != "") { format = "list"; }
260                         else if (sabundfile != "") { format = "sabund"; }
261                         else if (rabundfile != "") { format = "rabund"; }
262                 }
263         }
264         catch(exception& e) {
265                 cout << "Standard Error: " << e.what() << " has occurred in the GlobalData class Function parseGlobalData. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
266                 exit(1);
267         }
268         catch(...) {
269                 cout << "An unknown error has occurred in the GlobalData class function parseGlobalData. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
270                 exit(1);
271         }
272 }
273 /*******************************************************/
274
275 /******************************************************/
276 // These functions give you the option parameters of the commands
277 string GlobalData::getPhylipFile()              {       return phylipfile;      }
278 string GlobalData::getColumnFile()              {       return columnfile;      }
279 string GlobalData::getListFile()                {       return listfile;        }
280 string GlobalData::getRabundFile()              {       return rabundfile;      }
281 string GlobalData::getSabundFile()              {       return sabundfile;      }
282 string GlobalData::getNameFile()                {       return namefile;        }
283 string GlobalData::getGroupFile()               {       return groupfile;       }
284 string GlobalData::getOrderFile()               {       return orderfile;       }
285 string GlobalData::getTreeFile()                {       return treefile;        }
286 string GlobalData::getSharedFile()              {       return sharedfile;      }
287 string GlobalData::getFastaFile()               {       return fastafile;       }
288 string GlobalData::getNexusFile()               {       return nexusfile;       }
289 string GlobalData::getClustalFile()     {   return clustalfile; }
290 string GlobalData::getCutOff()                  {       return cutoff;          }
291 string GlobalData::getFormat()                  {       return format;          }
292 string GlobalData::getPrecision()               {       return precision;       }
293 string GlobalData::getMethod()                  {       return method;          }
294 string GlobalData::getFileRoot()                {       return fileroot;        }
295 string GlobalData::getIters()                   {       return iters;           }
296 string GlobalData::getJumble()                  {       return jumble;          }
297 string GlobalData::getFreq()                    {       return freq;            }
298 string GlobalData::getAbund()           {   return abund;       }
299 string GlobalData::getRandomTree()              {       return randomtree;      }
300 string GlobalData::getGroups()                  {       return groups;          }
301 string GlobalData::getStep()                    {       return step;            }
302 string GlobalData::getForm()                    {       return form;            }
303 string GlobalData::getSorted()                  {       return sorted;          }
304 string GlobalData::getTrump()                   {   return trump;       }
305 string GlobalData::getSoft()                    {   return soft;                }
306 string GlobalData::getFilter()                  {   return filter;              }
307 string GlobalData::getScale()                   {       return scale;           }
308 string GlobalData::getEnds()                    {   return ends;                }
309 string GlobalData::getProcessors()              {       return processors;      }
310 string GlobalData::getSize()            {   return size;        }
311
312 void GlobalData::setListFile(string file)       {       listfile = file;        inputFileName = file;}
313 void GlobalData::setRabundFile(string file)     {       rabundfile = file;      inputFileName = file;}
314 void GlobalData::setSabundFile(string file)     {       sabundfile = file;      inputFileName = file;}
315 void GlobalData::setPhylipFile(string file)     {       phylipfile = file;    inputFileName = file;}
316 void GlobalData::setColumnFile(string file)     {       columnfile = file;    inputFileName = file;}
317 string GlobalData::getTemplateFile()    {       return templatefile;}
318 string GlobalData::getSearch()                  {       return search;          }
319 string GlobalData::getKSize()                   {       return ksize;           }
320 string GlobalData::getAlign()                   {       return align;           }
321 string GlobalData::getMatch()                   {       return match;           }
322 string GlobalData::getMismatch()                {       return mismatch;        }
323 string GlobalData::getGapopen()                 {       return gapopen;         }
324 string GlobalData::getGapextend()               {       return gapextend;       }
325
326 void GlobalData::setGroupFile(string file)              {       groupfile = file;       }
327 void GlobalData::setSharedFile(string file)             {       sharedfile = file;      inputFileName = file; fileroot = file;}
328 void GlobalData::setNameFile(string file)               {       namefile = file;                }
329 void GlobalData::setFormat(string Format)               {       format = Format;                }
330 void GlobalData::setRandomTree(string Random)   {       randomtree = Random;    }
331 void GlobalData::setGroups(string g)                    {       groups = g;                             }
332 void GlobalData::setCalc(string Calc)                   {       calc = Calc;                    }
333 void GlobalData::setEnds(string e)                              {   ends = e;                           }
334 void GlobalData::setProcessors(string p)                {       processors = p;                 }
335
336
337 /*******************************************************/
338
339 /******************************************************/
340 GlobalData::GlobalData() {
341         //option definitions should go here...
342         helpRequest = "";
343         clear();
344         gListVector == NULL;            
345         gSparseMatrix == NULL;  
346 }
347 /*******************************************************/
348
349 /******************************************************/
350 void GlobalData::clear() {
351         //option definitions should go here...
352         phylipfile              =       "";
353         columnfile              =       "";
354         listfile                =       "";
355         rabundfile              =       "";
356         sabundfile              =       "";
357         namefile                =       "";
358         groupfile               =       ""; 
359         orderfile               =       "";
360         fastafile               =   "";
361         nexusfile               =   "";
362         clustalfile             =   "";
363         treefile                =       "";
364         sharedfile              =       "";
365         templatefile    =       "";
366         cutoff                  =       "10.00";
367         format                  =       "";
368         precision               =       "100";
369         iters                   =       "1000"; 
370         line                    =   "";
371         label                   =       "";
372         groups                  =       "";
373         jumble                  =       "1";    //0 means don't jumble, 1 means jumble.
374         randomtree              =       "";  //"" means user will enter some user trees, "outputfile" means they just want the random tree distribution to be outputted to outputfile.
375         freq                    =       "100";
376         method                  =       "furthest";
377         fileroot                =       "";
378         abund           =   "10";
379         step                    =       "0.01";
380         form                    =       "integral";
381         sorted                  =       "T";  //F means don't sort, T means sort.
382         vertical        =   "";         
383         trump           =   "";         
384         filter          =   "";         
385         soft            =   ""; 
386         scale                   =       "log10";
387         ends                    =   "T";  //yes
388         processors              =       "1";
389         size            =   "1000";
390         search                  =       "suffix";
391         ksize                   =       "7";
392         align                   =       "blast";
393         match                   =       "1.0";
394         mismatch                =       "-1.0";
395         gapopen                 =       "-5.0";
396         gapextend               =       "-2.0";
397 }
398
399 //*******************************************************/
400
401 /******************************************************/
402 void GlobalData::reset() {
403         cutoff                  =       "10.00";
404         precision               =       "100";
405         iters                   =       "1000"; 
406         groups                  =       "";
407         jumble                  =       "1";    //0 means don't jumble, 1 means jumble.
408         sorted                  =       "T";  //F means don't sort, T means sort.
409         randomtree              =       "";  //"" means user will enter some user trees, "outputfile" means they just want the random tree distribution to be outputted to outputfile.
410         freq                    =       "100";
411         method                  =       "furthest";
412         calc                    =       "";
413         abund                   =   "10";
414         step                    =       "0.01";
415         form                    =       "integral";
416         ends                    =   "T";
417         processors              =       "1";
418         size            =   "1000";
419         search                  =       "suffix";
420         ksize                   =       "7";
421         align                   =       "blast";
422         match                   =       "1.0";
423         mismatch                =       "-1.0";
424         gapopen                 =       "-5.0";
425         gapextend               =       "-2.0";
426 }
427 /*******************************************************/
428
429 /******************************************************/
430 GlobalData::~GlobalData() {
431         _uniqueInstance = 0;
432         if(gListVector != NULL)         {       delete gListVector;             }
433         if(gSparseMatrix != NULL)       {       delete gSparseMatrix;   }
434         if(gorder != NULL)                      {       delete gorder;          }
435 }
436 /*******************************************************/
437
438 /*******************************************************/
439 void GlobalData::parseTreeFile() {
440         //only takes names from the first tree and assumes that all trees use the same names.
441         try {
442                 string filename = treefile;
443                 ifstream filehandle;
444                 openInputFile(filename, filehandle);
445                 int c, comment;
446                 comment = 0;
447                 
448                 //if you are not a nexus file 
449                 if ((c = filehandle.peek()) != '#') {  
450                         while((c = filehandle.peek()) != ';') { 
451                                 while ((c = filehandle.peek()) != ';') {
452                                         // get past comments
453                                         if(c == '[') {
454                                                 comment = 1;
455                                         }
456                                         if(c == ']'){
457                                                 comment = 0;
458                                         }
459                                         if((c == '(') && (comment != 1)){ break; }
460                                         filehandle.get();
461                                 }
462
463                                 readTreeString(filehandle); 
464                         }
465                 //if you are a nexus file
466                 }else if ((c = filehandle.peek()) == '#') {
467                         string holder = "";
468                                         
469                         // get past comments
470                         while(holder != "translate" && holder != "Translate"){  
471                                 if(holder == "[" || holder == "[!"){
472                                         comment = 1;
473                                 }
474                                 if(holder == "]"){
475                                         comment = 0;
476                                 }
477                                 filehandle >> holder; 
478         
479                                 //if there is no translate then you must read tree string otherwise use translate to get names
480                                 if(holder == "tree" && comment != 1){   
481                                         //pass over the "tree rep.6878900 = "
482                                         while (((c = filehandle.get()) != '(') && ((c = filehandle.peek()) != EOF) ) {;}
483
484                                         if (c == EOF ) { break; }
485                                         filehandle.putback(c);  //put back first ( of tree.
486                                         readTreeString(filehandle);     
487                                         break;
488                                 }
489                         }
490                         
491                         //use nexus translation rather than parsing tree to save time
492                         if ((holder == "translate") || (holder == "Translate")) {
493
494                                 string number, name, h;
495                                 h = ""; // so it enters the loop the first time
496                                 while((h != ";") && (number != ";")) { 
497                                         filehandle >> number;
498                                         filehandle >> name;
499         
500                                         //c = , until done with translation then c = ;
501                                         h = name.substr(name.length()-1, name.length()); 
502                                         name.erase(name.end()-1);  //erase the comma
503                                         Treenames.push_back(number);
504                                 }
505                                 if (number == ";") { Treenames.pop_back(); }  //in case ';' from translation is on next line instead of next to last name
506                         }
507                 }
508                 
509         }
510         catch(exception& e) {
511                 cout << "Standard Error: " << e.what() << " has occurred in the GlobalData class Function parseTreeFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
512                 exit(1);
513         }
514         catch(...) {
515                 cout << "An unknown error has occurred in the GlobalData class function parseTreeFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
516                 exit(1);
517         }               
518 }
519 /*******************************************************/
520
521 /*******************************************************/
522 void GlobalData::readTreeString(ifstream& filehandle)   {
523         try {
524                 int c;
525                 string name; //k
526                 
527                 while((c = filehandle.peek()) != ';') { 
528                                 //if you are a name
529                         if ((c != '(') && (c != ')') && (c != ',') && (c != ':') && (c != '\n') && (c != '\t') && (c != 32)) { //32 is space
530                                 name = "";
531                                 c = filehandle.get();
532         //              k = c;
533 //cout << k << endl;
534                                 while ((c != '(') && (c != ')') && (c != ',') && (c != ':') && (c != '\n') && (c != 32) && (c != '\t')) {                       
535                                         name += c;
536                                         c = filehandle.get();
537                 //      k = c;
538 //cout << " in name while " << k << endl;
539                                 }
540                                 
541 //cout << "name = " << name << endl;
542                                 Treenames.push_back(name);
543                                 filehandle.putback(c);
544 //k = c;
545 //cout << " after putback" <<  k << endl;
546                         } 
547                         
548                         if (c  == ':') { //read until you reach the end of the branch length
549                                 while ((c != '(') && (c != ')') && (c != ',') && (c != ';') && (c != '\n') && (c != '\t') && (c != 32)) {
550                                         c = filehandle.get();
551                                 //      k = c;
552         //cout << " in branch while " << k << endl;
553                                 }
554                                 filehandle.putback(c);
555                         }
556                         c = filehandle.get();
557                         if (c == ';') { break; }
558                 //      k = c;
559 //cout << k << endl;
560
561                 }
562         }
563         catch(exception& e) {
564                 cout << "Standard Error: " << e.what() << " has occurred in the GlobalData class Function parseTreeFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
565                 exit(1);
566         }
567         catch(...) {
568                 cout << "An unknown error has occurred in the GlobalData class function parseTreeFile. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
569                 exit(1);
570         }               
571 }       
572
573 /*******************************************************/
574
575 /*******************************************************/
576
577