]> git.donarmstrong.com Git - mothur.git/blobdiff - bellerophon.h
added sorted parameter to get.oturep, added error checking to chimera classes in...
[mothur.git] / bellerophon.h
index 3f28e5b9873bc2a8d16cc68d266b42963ccbc461..85c555043d207878eed1ccb1466e424cd064629e 100644 (file)
 
 #include "chimera.h"
 #include "filterseqscommand.h"
+#include "sparsematrix.hpp"
 #include "sequence.hpp"
 #include "dist.h"
 
-struct Preference {
-               string name;
-               vector<string> leftParent; //keep the name of closest left associated with the two scores
-               vector<string> rightParent; //keep the name of closest right associated with the two scores
-               vector<float> score;  //so you can keep last score and calc this score and keep whichever is bigger.
-               vector<float> closestLeft;  //keep the closest left associated with the two scores
-               vector<float> closestRight; //keep the closest right associated with the two scores
-               int midpoint;
-
-};
-
+typedef list<PCell>::iterator MatData;
+typedef map<int, float> SeqMap;  //maps sequence to all distance for that seqeunce
 
 /***********************************************************/
 
@@ -36,25 +28,23 @@ class Bellerophon : public Chimera {
                Bellerophon(string);    
                ~Bellerophon() {};
                
-               void getChimeras();
+               int getChimeras();
                void print(ostream&);
                
+               void setCons(string){};
+               void setQuantiles(string) {};
+               
                
        private:
                Dist* distCalculator;
                FilterSeqsCommand* filterSeqs;
-               vector<Sequence> seqs;
+               vector<Sequence*> seqs;
                vector<Preference> pref;
                string fastafile;
                int iters;
                
-               void readSeqs();
                void generatePreferences(vector<SeqMap>, vector<SeqMap>, int);
                int createSparseMatrix(int, int, SparseMatrix*, vector<Sequence>);
-       
-
-               
-
 };
 
 /***********************************************************/