File: pileup.h

package info (click to toggle)
transrate-tools 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 428 kB
  • sloc: cpp: 449; sh: 30; makefile: 7
file content (52 lines) | stat: -rw-r--r-- 1,015 bytes parent folder | download | duplicates (4)
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
#include <stdio.h>
#include <string>
#include <vector>
#include <math.h>
#include "api/BamAlignment.h"
#include "segmenter.h"

extern double nullprior;

using namespace BamTools;

using namespace std;

class TransratePileup {

  private:
    // instance variables
    int p;
    vector<int> coverage;


  public:
    // constructor
    TransratePileup();

    // instance variables i can't be bothered to write accessor methods for
    int ref_length;
    int bases_mapped;
    double p_seq_true;
    int bridges;
    int length;
    string name;
    int reads_mapped;
    int fragments_mapped;
    int both_mapped;
    int properpair;
    int good;
    int bases_uncovered;
    double p_unique;
    double p_not_segmented;

    // methods
    void clearCoverage(int rl);
    void setName(std::string);
    void setLength(int);
    int getCoverage(int i);
    vector<int> getCoverageArray();
    void calculateUncoveredBases();
    void setPNotSegmented();
    void addAlignment(const BamAlignment& alignment);

};