File: kmernode.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 (45 lines) | stat: -rwxr-xr-x 1,190 bytes parent folder | download | duplicates (8)
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
38
39
40
41
42
43
44
45
#ifndef KMERNODE
#define KMERNODE

/*
 *  kmerNode.h
 *  bayesian
 *
 *  Created by Pat Schloss on 10/11/11.
 *  Copyright 2011 Patrick D. Schloss. All rights reserved.
 *
 */


#include "taxonomynode.h"

/**********************************************************************************************************************/

class KmerNode : public TaxonomyNode {
	
public:
	KmerNode(string, int, int);
	void loadSequence(vector<int>&);
	void printTheta();
	double getPxGivenkj_D_j(vector<int>&);
	double getSimToConsensus(vector<int>&);
	void checkTheta(){};
	void setNumUniqueKmers(int num)	{	numUniqueKmers = num;	}
	int getNumUniqueKmers();
	void addThetas(vector<int>, int);
	vector<int> getTheta()	{	return kmerVector;	}


private:
	string getKmerBases(int);
	int kmerSize;								//	value of k
	int numPossibleKmers;						//	4^kmerSize
	int numUniqueKmers;							//	number of unique kmers seen in a group ~ O_kj
	int numKmers;								//	number of kmers in a sequence
	vector<int> kmerVector;						//	counts of kmers across all sequences in a node
};

/**********************************************************************************************************************/

#endif