-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsequence.h
63 lines (55 loc) · 1.3 KB
/
sequence.h
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef _SEQUENCE_H_
#define _SEQUENCE_H_
#include "mympi.h"
#include <sys/stat.h>
#include <sys/types.h>
#define DEBUG 0
#define BUF_SIZE (1048576*64)
#define Filter_Threshold 0
#define Edge_Threshold 6
#define MersPrime ((1<<31)-1)
#define READ_PROCESS_STEP 655360000
#define KMER_COMM_TYPE_LEN 10
#define Contig_Length 100
class parameter
{
public:
//file path
char fastaPath[255];
char outputPath[255];
char contigsPath[255];
char LogPath[255];
char graphPath[255];
char masterContigPath[255];
char JungGraph_arc[255];
char JungGraph_mul[255];
char arcFrequency[255];
char kmerGraph[255];
//parameters
int hashLength;
int filterThreshold;
int cutoffThreshold;
int kmerGraphFlag;
int JungGraphFlag;
int distGraphFlag;
int performanceFlag;
//nucleotide variables
char nucleotideValue[128];
char nucleotideArray[4];
char nucleotideReverse[128];
void getopt(int argc, char **argv);
void getParameters(int argc, char **argv, MPIEnviroment *MPIcontrol);
};
class sequence
{
public:
//store reads
unsigned long long readCount;
char **reads;
unsigned long long totReads;
public:
void getSequences(parameter *p, MPIEnviroment *MPIcontrol);
int getNextReads(char *buf, int &len, MPIEnviroment *MPIcontrol);
~sequence();
};
#endif