From: westcott Date: Fri, 6 Mar 2009 15:02:30 +0000 (+0000) Subject: added full matrix files X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8aaea67a29205b8d3fe787d94d0dc5987858d2e6;p=mothur.git added full matrix files --- diff --git a/fullmatrix.cpp b/fullmatrix.cpp new file mode 100644 index 0000000..75cb0df --- /dev/null +++ b/fullmatrix.cpp @@ -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 index 0000000..4fe1145 --- /dev/null +++ b/fullmatrix.h @@ -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 > 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