File: kmertree.h

package info (click to toggle)
mothur 1.48.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,684 kB
  • sloc: cpp: 161,854; makefile: 122; sh: 31
file content (37 lines) | stat: -rwxr-xr-x 754 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  kmerTree.h
//  pdsBayesian
//
//  Created by Patrick Schloss on 4/3/12.
//  Copyright (c) 2012 University of Michigan. All rights reserved.
//

#ifndef pdsBayesian_kmerTree_h
#define pdsBayesian_kmerTree_h

#include "classify.h"

class KmerNode;

class KmerTree : public Classify {
	
public:
	KmerTree(string, string, int, int);
	~KmerTree();
	
    string getTaxonomy(Sequence*, string&, bool&);

private:
    int addTaxonomyToTree(string, string, vector<int>&);
	vector<int> ripKmerProfile(string);
	int getMinRiskIndexKmer(vector<int>&, vector<int>&, vector<double>&);
	int aggregateThetas();
	int sanityCheck(vector<vector<int> >&, vector<int>&);

	int kmerSize;
	int numPossibleKmers, confidenceThreshold;
	vector<KmerNode*> tree;

};

#endif