]> git.donarmstrong.com Git - mothur.git/blob - sharedutilities.h
working on pam
[mothur.git] / sharedutilities.h
1 #ifndef SHAREDUTIL_H
2 #define SHAREDUTIL_H
3 /*
4  *  sharedutilities.h
5  *  Mothur
6  *
7  *  Created by Sarah Westcott on 4/9/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 #include "mothur.h"
13 #include "mothurout.h"
14
15 class SharedRAbundVector;
16 class SharedOrderVector;
17
18 /**************************************************************************************************/
19
20 class SharedUtil {
21         public:
22                 SharedUtil() { m = MothurOut::getInstance(); }
23                 ~SharedUtil() {};
24                 
25                 void getSharedVectors(vector<string>, vector<SharedRAbundVector*>&, SharedOrderVector*);
26                 void getSharedVectorswithReplacement(vector<string>, vector<SharedRAbundVector*>&, SharedOrderVector*);
27                 void setGroups(vector<string>&, vector<string>&);  //globaldata->Groups, your tree or group map
28                 void setGroups(vector<string>&, vector<string>&, string);  //globaldata->Groups, your tree or group map, mode
29                 void setGroups(vector<string>&, vector<string>&, string&, int&, string);  //globaldata->Groups, your tree or group map, allgroups, numGroups, mode
30                 void getCombos(vector<string>&, vector<string>, int&); //groupcomb, globaldata->Groups, numcomb
31                 void updateGroupIndex(vector<string>&, map<string, int>&); //globaldata->Groups, groupmap->groupIndex
32                 bool isValidGroup(string, vector<string>);
33                 
34         private:
35                 MothurOut* m;
36                 
37 };
38
39 /**************************************************************************************************/
40
41 #endif