File: kmer.hpp

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 (39 lines) | stat: -rwxr-xr-x 765 bytes parent folder | download | duplicates (4)
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
#ifndef KMER_HPP
#define KMER_HPP

/*
 *  kmer.hpp
 *  
 *
 *  Created by Pat Schloss on 12/15/08.
 *  Copyright 2008 Patrick D. Schloss. All rights reserved.
 *
 */

#include "mothur.h"

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

class Kmer {
	
public:
	Kmer(int);
    ~Kmer() = default;
	string getKmerString(string);
	int getKmerNumber(string, int);
	string getKmerBases(int);
	int getReverseKmerNumber(int);
	vector< map<int, int> > getKmerCounts(string sequence);  //for use in chimeraCheck
	
private:
	char getASCII(int);
	int getNumber(char);
	int kmerSize;
	int maxKmer;
	int nKmers;
};

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


#endif