X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getoturepcommand.h;h=0e8a121793823677186d67e5d3cd255dd7ec47d1;hb=e1cf60b82a48d4d96e3a696a2d221c56cfb0b298;hp=58fec8d4f3e3aaaf148a9ff8455c4fba93c6b35f;hpb=92f998cc7debc4bf3e8594848586b8153d96db16;p=mothur.git diff --git a/getoturepcommand.h b/getoturepcommand.h index 58fec8d..0e8a121 100644 --- a/getoturepcommand.h +++ b/getoturepcommand.h @@ -18,6 +18,8 @@ #include "readotu.h" #include "fastamap.h" #include "groupmap.h" +#include "readmatrix.hpp" +#include "formatmatrix.h" typedef list::iterator MatData; typedef map SeqMap; @@ -48,15 +50,24 @@ private: InputData* input; FastaMap* fasta; GroupMap* groupMap; - string filename, fastafile, listfile, namesfile, groupfile, label, sorted, phylipfile, columnfile, namefile; + ReadMatrix* readMatrix; + FormatMatrix* formatMatrix; + NameAssignment* nameMap; + string filename, fastafile, listfile, namefile, groupfile, label, sorted, phylipfile, columnfile, distFile, format; ofstream out; - ifstream in, inNames; - bool abort, allLines, groupError; + ifstream in, inNames, inRow; + bool abort, allLines, groupError, large; set labels; //holds labels to be used map nameToIndex; //maps sequence name to index in sparsematrix + float cutoff; + int precision; + vector seqVec; // contains maps with sequence index and distance + // for all distances related to a certain sequence + vector rowPositions; void readNamesFile(); int process(ListVector*); + SeqMap getMap(int); string findRep(int, string&, ListVector*, int&); // returns the name of the "representative" sequence of given bin, // fills a string containing the groups in that bin if a groupfile is given, // and returns the number of sequences in the given bin