]> git.donarmstrong.com Git - mothur.git/blob - coverage.cpp
e7baf001fefe4d5de552c1cd6362eaa2b1333d2c
[mothur.git] / coverage.cpp
1 /*
2  *  coverage.cpp
3  *  Mothur
4  *
5  *  Created by Sarah Westcott on 3/9/09.
6  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
7  *
8  */
9
10 #include "coverage.h"
11
12 //**********************************************************************************************************************
13 vector< vector<float> > Coverage::getValues(FullMatrix*, float) {
14         try {
15                 globaldata = GlobalData::getInstance();
16                 numGroups = globaldata->Groups.size();
17                 
18                 //initialize data
19                 data.resize(numGroups);
20                 for (int l = 0; l < data.size(); l++) {
21                         data[l].push_back(0.0);
22                 }
23
24                 /**************************************/
25                 //get the minumums for each comparision
26                 /**************************************/
27                 return data;
28         }
29         catch(exception& e) {
30                 cout << "Standard Error: " << e.what() << " has occurred in the Coverage class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
31                 exit(1);
32         }
33         catch(...) {
34                 cout << "An unknown error has occurred in the Coverage class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
35                 exit(1);
36         }       
37 }
38 //**********************************************************************************************************************
39
40