forked from RabbitBio/RabbitBAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BamStatus.h
67 lines (50 loc) · 1.29 KB
/
BamStatus.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
64
65
66
67
#ifndef BAMSATUS_BAMSTATUS_H
#define BAMSATUS_BAMSTATUS_H
#include <htslib/sam.h>
#include <cstdint>
#include <fstream>
#include <set>
#include "config.h"
#include "Duplicate.h"
#include "Overrepresent.h"
using namespace std;
//const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN";
class BamStatus {
public:
BamStatus();
BamStatus(string filename);
~BamStatus();
void statusbam(bam1_t *b);
void statusAll();
void contentstatus();
void add(BamStatus *b);
void print();
void reportHTML(ofstream *fout);
void reportHTML(ofstream *fout, Duplicate *duplicate, Overrepresent *overrepresent);
void reportHTML(ofstream *fout, Duplicate *duplicate, Overrepresent *overrepresent, sam_hdr_t *hdr);
public:
int **NumberList;
int **Qualitylist;
int **QualityPositonList;
int **Content;
double **DoubleContent;
int *LengthSequence;
int *QualitySequence;
int **Kmer;
int ChooseKmerNum;
int *ChooseKmerPos;
int *ChooseKmerKey;
int KmerBase = 5;
int KmerBit;
int ChromosomeNumber = 2000;
int *Chromosome;
int total_number = 0;
int total_aligen_number = 0;
int max_len = 0;
int min_len = -1;
int ContentLen;
int QulityLen;
set<int> Chr;
string filename;
};
#endif //BAMSATUS_BAMSTATUS_H