]> git.donarmstrong.com Git - mothur.git/blob - chimeraslayer.h
fixed memory leak in maligner minCoverageFilter function used by chimera slayer
[mothur.git] / chimeraslayer.h
1 #ifndef CHIMERASLAYER_H
2 #define CHIMERASLAYER_H
3
4 /*
5  *  chimeraslayer.h
6  *  Mothur
7  *
8  *  Created by westcott on 9/25/09.
9  *  Copyright 2009 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "chimera.h"
15 #include "maligner.h"
16 #include "slayer.h"
17
18 //***********************************************************************/
19 //This class was modeled after the chimeraSlayer written by the Broad Institute
20 /***********************************************************************/
21
22
23 class ChimeraSlayer : public Chimera {
24         
25         public:
26                 ChimeraSlayer(string, string, string, int, int, int, int, float, int, int, int, int, int, int, int, int, bool);
27                 ~ChimeraSlayer();
28                 
29                 int getChimeras(Sequence*);
30                 int print(ostream&, ostream&);
31                 void printHeader(ostream&);
32                 int doPrep();
33                 
34                 #ifdef USE_MPI
35                 int print(MPI_File&, MPI_File&);
36                 #endif
37                 
38         private:
39                 Sequence* querySeq;
40                 DeCalculator* decalc;
41                 map<int, int>  spotMap;
42                 Database* databaseRight;
43                 Database* databaseLeft;
44                 
45                 vector<data_struct>  chimeraResults;
46                 string chimeraFlags, searchMethod, fastafile;
47                 bool realign;
48                 int window, numWanted, kmerSize, match, misMatch, minSim, minCov, minBS, minSNP, parents, iters, increment;
49                 float divR;
50         
51                 void printBlock(data_struct, string, ostream&);
52                 string getBlock(data_struct, string);
53                 
54 };
55
56 /************************************************************************/
57
58 #endif
59
60