]> git.donarmstrong.com Git - mothur.git/blob - chimeracheckrdp.h
working on chimeras
[mothur.git] / chimeracheckrdp.h
1 #ifndef CHIMERACHECK_H
2 #define CHIMERACHECK_H
3
4 /*
5  *  chimeracheckrdp.h
6  *  Mothur
7  *
8  *  Created by westcott on 9/8/09.
9  *  Copyright 2009 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "chimera.h"
15 #include "kmer.hpp"
16 #include "kmerdb.hpp"
17 #include "alignmentdb.h"
18
19 /***********************************************************/
20 //This class was created using the algorythms described in 
21 //CHIMERA_CHECK version 2.7 written by Niels Larsen. 
22
23 /***********************************************************/
24
25 class ChimeraCheckRDP : public Chimera {
26         
27         public:
28                 ChimeraCheckRDP(string, string);        
29                 ~ChimeraCheckRDP();
30                 
31                 int getChimeras(Sequence*);
32                 void print(ostream&);
33                 void doPrep();
34                 
35         private:
36                 
37                 
38                 Sequence* querySeq;
39                 AlignmentDB* templateDB;
40                 Kmer* kmer;
41                 Sequence closest;               //closest is the closest overall seq to query
42
43                 vector<sim>  IS;  //IS is the vector of IS values for each window for query
44                 string fastafile;
45                 map<string, string> names;
46                 
47                 vector<sim> findIS();
48                 int calcKmers(map<int, int>, map<int, int>);
49                 void makeSVGpic(vector<sim>);
50                 void readName(string);
51 };
52 /***********************************************************/
53
54 #endif
55