-
Notifications
You must be signed in to change notification settings - Fork 1
/
utils.h
33 lines (28 loc) · 847 Bytes
/
utils.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
#ifndef UT
#define UT
#include <string>
#include <iostream>
#include <cstdint>
#include <cctype>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <algorithm>
using namespace std;
typedef uint64_t minimizer;
typedef unsigned int uint;
vector<string> getReads(string& ReadFile,uint n);
uint64_t nuc2int(char c);
string reversecomplement (const string& s);
void int2seq(minimizer min, uint n);
minimizer cat(minimizer seed, minimizer body, uint n);
minimizer getRepresent(minimizer min, uint n);
minimizer rc(minimizer min, uint n);
minimizer getEnd(minimizer kmer, uint n);
minimizer getBegin(minimizer kmer, uint n);
string randomSeq(uint length);
minimizer seq2intStranded(const string& seq);
uint nbits(uint H);
string genomeKmer(string genome, uint position, uint length);
string loadGenome(string file);
#endif