]> git.donarmstrong.com Git - mothur.git/commitdiff
added full matrix files
authorwestcott <westcott>
Fri, 6 Mar 2009 15:02:30 +0000 (15:02 +0000)
committerwestcott <westcott>
Fri, 6 Mar 2009 15:02:30 +0000 (15:02 +0000)
fullmatrix.cpp [new file with mode: 0644]
fullmatrix.h [new file with mode: 0644]

diff --git a/fullmatrix.cpp b/fullmatrix.cpp
new file mode 100644 (file)
index 0000000..75cb0df
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ *  fullmatrix.cpp
+ *  Mothur
+ *
+ *  Created by Sarah Westcott on 3/6/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+#include "fullmatrix.h"
+
+
+/**************************************************************************
+FullMatrix::FullMatrix(ifstream& in) {
+
+}
+~FullMatrix::FullMatrix(){}
+       
+       int FullMatrix::getNumSeqs(){}
+*/
\ No newline at end of file
diff --git a/fullmatrix.h b/fullmatrix.h
new file mode 100644 (file)
index 0000000..4fe1145
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef FULLMATRIX_H
+#define FULLMATRIX_H
+/*
+ *  fullmatrix.h
+ *  Mothur
+ *
+ *  Created by Sarah Westcott on 3/6/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+#include "mothur.h"
+#include "groupmap.h"
+
+class FullMatrix {
+       
+public:
+       FullMatrix(){};
+       FullMatrix(ifstream&);
+       ~FullMatrix();
+       
+       int getNumSeqs();
+       
+private:
+       void sortGroups();  //this function sorts the sequences within the matrix.  
+       vector< vector<float> > matrix;  //a 2D distance matrix of all the sequences and their distances to eachother.
+       GroupMap* groupmap;  //maps sequences to groups they belong to.
+       int numSeqs;
+
+};
+
+#endif
\ No newline at end of file