]> git.donarmstrong.com Git - mothur.git/blob - splitmatrix.h
changes to blastdb to make filenames given to blast unique, changes to split.abund...
[mothur.git] / splitmatrix.h
1 #ifndef SPLITMATRIX_H
2 #define SPLITMATRIX_H
3 /*
4  *  splitmatrix.h
5  *  Mothur
6  *
7  *  Created by westcott on 5/19/10.
8  *  Copyright 2010 Schloss Lab. All rights reserved.
9  *
10  */
11
12
13 #include "mothur.h"
14 #include "mothurout.h"
15
16 /******************************************************/
17
18 class SplitMatrix  {
19         
20         public:
21
22                 SplitMatrix(string, string, string, float, string, bool); //column formatted distance file, namesfile, cutoff, method
23                 ~SplitMatrix();
24                 int split();
25                 vector< map<string, string> > getDistanceFiles();  //returns map of distance files -> namefile sorted by distance file size
26                 string getSingletonNames() { return singleton; } //returns namesfile containing singletons
27         
28         private:
29                 MothurOut* m;
30
31                 string distFile, namefile, singleton, method, taxFile;
32                 vector< map< string, string> > dists;
33                 float cutoff;
34                 bool large;
35                                 
36                 int splitDistance();
37                 int splitClassify();
38                 int splitDistanceLarge();
39                 int splitDistanceRAM();
40                 int splitNames(vector<set<string> >& groups);
41 };
42
43 /******************************************************/
44
45 #endif
46