]> git.donarmstrong.com Git - mothur.git/blob - chimeraslayer.h
finished chimera.slayer adding trim parameter, added persample parameter to sub.sampl...
[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, bool, string, int, int, int, int, float, int, int, int, int, int, int, int, int, bool);
27                 ChimeraSlayer(string, string, bool, string, string, string, int, int, int, int, float, int, int, int, int, int, int, int, int, bool);
28
29                 ~ChimeraSlayer();
30                 
31                 int getChimeras(Sequence*);
32                 Sequence* print(ostream&, ostream&);
33                 void printHeader(ostream&);
34                 int doPrep();
35                 
36                 #ifdef USE_MPI
37                 Sequence* print(MPI_File&, MPI_File&);
38                 #endif
39                 
40         private:
41                 Sequence* querySeq;
42                 Sequence* trimQuery;
43                 DeCalculator* decalc;
44                 map<int, int>  spotMap;
45                 Database* databaseRight;
46                 Database* databaseLeft;
47                 map<string, vector<string> > nameMapRank;  //sequence name to rank so you can construct a template of the abundant sequences if the user uses itself as template
48                 
49                 vector<data_struct>  chimeraResults;
50                 string chimeraFlags, searchMethod, fastafile, includeAbunds;
51                 bool realign, trimChimera;
52                 int window, numWanted, kmerSize, match, misMatch, minSim, minCov, minBS, minSNP, parents, iters, increment;
53                 float divR;
54         
55                 void printBlock(data_struct, string, ostream&);
56                 string getBlock(data_struct, string);
57                 int readNameFile(string);
58                 vector<Sequence*> getTemplate(Sequence*);
59                 
60 };
61
62 /************************************************************************/
63
64 #endif
65
66