-
Notifications
You must be signed in to change notification settings - Fork 374
Expand file tree
/
Copy pathevaluator.h
More file actions
38 lines (32 loc) · 1.06 KB
/
evaluator.h
File metadata and controls
38 lines (32 loc) · 1.06 KB
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
#ifndef EVALUATOR_H
#define EVALUATOR_H
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "options.h"
#include "util.h"
#include "read.h"
using namespace std;
class Evaluator{
public:
Evaluator(Options* opt);
~Evaluator();
// evaluate how many reads are stored in the input file
void evaluateReadNum(long& readNum);
string evalAdapterAndReadNumDepreciated(long& readNum);
string evalAdapterAndReadNum(long& readNum, bool isR2);
bool isOneOrTwoColorSystem();
void evaluateSeqLen();
void evaluateOverRepSeqs();
void computeOverRepSeq(string filename, map<string, long>& hotseqs, int seqLen);
int computeSeqLen(string filename);
static bool test();
static string matchKnownAdapter(string seq);
private:
Options* mOptions;
string int2seq(unsigned int val, int seqlen);
int seq2int(string* seq, int pos, int seqlen, int lastVal = -1);
int seq2int(string& seq, int pos, int seqlen, int lastVal = -1);
string getAdapterWithSeed(int seed, Read** loadedReads, long records, int keylen);
};
#endif