-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
27 lines (18 loc) · 748 Bytes
/
config.h
File metadata and controls
27 lines (18 loc) · 748 Bytes
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
#ifndef COLORGRAM_CONFIG_H
#define COLORGRAM_CONFIG_H
#include <stxxl.h>
#include <bitset>
#define SIGMA 4u
#define LOGSIGMA 3u
// define the maximal size of the color table in bits that can fit in the memory
#define MAX_COLOR_TABLE_SIZE 8ULL * 1024 * 1024 * 1024 * 50
static const char base[SIGMA + 1] = {'$', 'A', 'C', 'G', 'T'};
struct color_class_t {
color_class_t() = default;
explicit color_class_t(const std::bitset<MAXCOLORS>& pbitvector) : bitvector(pbitvector) {}
std::bitset<MAXCOLORS> bitvector;
size_t cnt = 0;
};
typedef typename stxxl::VECTOR_GENERATOR<size_t>::result size_t_vector_type;
typedef typename stxxl::VECTOR_GENERATOR<uint8_t>::result uint8_t_vector_type;
#endif //COLORGRAM_CONFIG_H