modified: myjupyterlab.sh
[GalaxyCodeBases.git] / released / pIRS.old / stat_illumina_reads / gcvgstater / self_util.h
blobddafa04af41629320df7f5a8083a270a95a86b0b
1 #ifndef _SELF_UTIL_H_
2 #define _SELF_UTIL_H_
4 #include <string>
5 #include <vector>
6 #include <stdint.h>
7 #include <sstream>
8 #include <cstring>
9 #include <ctype.h>
10 #include <algorithm>
11 using namespace std;
13 void TrimLeft(string& str);
14 void TrimRight(string& str);
15 vector<string> splitString(string str, string delims=" \t\n");
16 vector<int> splitStringToInt(string str, string delims=" \t\n");
17 int toInt(string str);
18 uint64_t toUint64(string str);
19 template <typename T>
20 string toStr(T t)
22 stringstream ss;
23 ss << t;
24 string s;
25 ss >> s;
26 return s;
29 string ToUpper(string str);
30 string ToLower(string str);
33 #ifndef _BIOINFO_UTIL_
34 #define _BIOINFO_UTIL_
36 uint64_t seq2bit(string &kseq);
38 string bit2seq(uint64_t kbit, int kmerSize);
39 bool check_seq (string &seq);
40 void reverse_complement (string &in_str, string &out_str);
42 #endif
44 #endif