]> git.donarmstrong.com Git - mothur.git/blob - splitmatrix.h
added cluster.split command
[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, float); //column formatted distance file, namesfile, cutoff
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                 string distFile, namefile, singleton;
30                 vector< map< string, string> > dists;
31                 float cutoff;
32                 
33                 MothurOut* m;
34 };
35
36 /******************************************************/
37
38 #endif
39