-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathglobal.h
41 lines (33 loc) · 918 Bytes
/
global.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
/* Copyright (c) 2013-2014 Y. William Yu. Released under CC0 1.0 Universal. */
#ifndef _GLOBAL_H_
#define _GLOBAL_H_
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <limits.h>
//#include <boost/dynamic_bitset.hpp>
//#include <bitset>
#include <algorithm>
#include <unordered_set>
#include <set>
#include <stdint.h>
#include <deque>
#include <ctime>
#include <fstream>
typedef uint64_t readseq;
/*
* A = 00
* C = 01
* G = 10
* T = 11
*/
std::deque<readseq> encode_read(const char *bases);
std::vector<readseq> encode_read_vector(const char *bases);
std::string decode_read(const readseq e);
readseq rev_compl(const readseq orig);
int subst_find(const readseq a, const readseq b);
//int subst_count(const std::bitset<MAXBITS> &a, const std::bitset<MAXBITS> &b);
void int64checker();
std::string time_now( const char* format = "%F %X" );
#endif // #idndef _GLOBAL_H_