]> git.donarmstrong.com Git - mothur.git/blob - splitmatrix.h
changed hard parameter in cluster commands
[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); //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                                 
35                 int splitDistance();
36                 int splitClassify();
37 };
38
39 /******************************************************/
40
41 #endif
42