X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bellerophon.h;h=aa53f9852f20202ae77841fbf9262a9802356bbe;hb=9ada98592a54c82d08f3d46c9b1d8c3e472a922d;hp=05e93d755e3948831ef1576cd6028771b9f6a537;hpb=3abb236c602eb168ee112f080b563ebe2c705029;p=mothur.git diff --git a/bellerophon.h b/bellerophon.h index 05e93d7..aa53f98 100644 --- a/bellerophon.h +++ b/bellerophon.h @@ -13,50 +13,38 @@ #include "chimera.h" #include "filterseqscommand.h" +#include "sparsematrix.hpp" #include "sequence.hpp" #include "dist.h" -struct Preference { - string name; - vector leftParent; //keep the name of closest left associated with the two scores - vector rightParent; //keep the name of closest right associated with the two scores - vector score; //so you can keep last score and calc this score and keep whichever is bigger. - vector closestLeft; //keep the closest left associated with the two scores - vector closestRight; //keep the closest right associated with the two scores - int midpoint; - -}; - +typedef list::iterator MatData; +typedef map SeqMap; //maps sequence to all distance for that seqeunce /***********************************************************/ class Bellerophon : public Chimera { public: - Bellerophon(string); + Bellerophon(string, string); ~Bellerophon() {}; - void getChimeras(); + int getChimeras(); void print(ostream&); void setCons(string){}; + void setQuantiles(string) {}; private: Dist* distCalculator; FilterSeqsCommand* filterSeqs; - vector seqs; + vector seqs; vector pref; string fastafile; int iters; - void readSeqs(); void generatePreferences(vector, vector, int); int createSparseMatrix(int, int, SparseMatrix*, vector); - - - - }; /***********************************************************/