8 * Created by Sarah Westcott on 7/9/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
15 #include "sequence.hpp"
20 vector<string> leftParent; //keep the name of closest left associated with the two scores
21 vector<string> rightParent; //keep the name of closest right associated with the two scores
22 vector<float> score; //so you can keep last score and calc this score and keep whichever is bigger.
23 vector<float> closestLeft; //keep the closest left associated with the two scores
24 vector<float> closestRight; //keep the closest right associated with the two scores
34 //********************************************************************************************************************
35 //sorts lowest to highest
36 inline bool compareSeqDist(SeqDist left, SeqDist right){
37 return (left.dist < right.dist);
39 //********************************************************************************************************************
51 linePair(int i, int j) : start(i), end(j) {}
55 /***********************************************************************/
63 Chimera(string, string);
65 virtual void setFilter(bool f) { filter = f; }
66 virtual void setCorrection(bool c) { correction = c; }
67 virtual void setProcessors(int p) { processors = p; }
68 virtual void setWindow(int w) { window = w; }
69 virtual void setIncrement(int i) { increment = i; }
70 virtual void setNumWanted(int n) { numWanted = n; }
71 virtual void setKmerSize(int k) { kmerSize = k; }
73 virtual void setCons(string){};
74 virtual void setQuantiles(string){};
75 virtual vector<Sequence*> readSeqs(string);
76 virtual vector< vector<float> > readQuantiles();
77 virtual void setMask(string);
78 virtual void runFilter(vector<Sequence*>);
79 virtual void createFilter(vector<Sequence*>);
83 virtual void getChimeras() = 0;
84 virtual void print(ostream&) = 0;
88 bool filter, correction;
89 int processors, window, increment, numWanted, kmerSize;
90 string seqMask, quanfile, filterString;
95 /***********************************************************************/