forked from maip/novo_muta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
read_dependent_data.h
43 lines (38 loc) · 1.49 KB
/
read_dependent_data.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
/**
* @file read_dependent_data.h
* @author Melissa Ip
*
* The ReadDependentData class contains the members that are dependent on
* ReadData/ReadDataVector including matrices and vectors that are calculated
* from sequencing error and by the tree-peeling algorithm.
*/
#ifndef READ_DEPENDENT_DATA_H
#define READ_DEPENDENT_DATA_H
#include "utility.h"
/**
* ReadDependentData class header. See top of file for a complete description.
*/
class ReadDependentData {
public:
ReadDependentData(); // Default constructor leaves read_data_vec empty.
ReadDependentData(const ReadDataVector &data_vec); // Constructor that initializes read_data_vec.
bool Equals(const ReadDependentData &other);
// Instance member variables.
ReadDataVector read_data_vec;
vector<double> max_elements; // Stores max element of sequencing_probability_mat when rescaling to normal space.
Matrix3_16d sequencing_probability_mat; // P(R|somatic genotype)
RowVector16d child_somatic_probability;
RowVector16d mother_somatic_probability;
RowVector16d father_somatic_probability;
class TreePeel {
public:
RowVector16d child_zygotic_probability; // P(R|zygotic genotype)
RowVector16d mother_zygotic_probability;
RowVector16d father_zygotic_probability;
RowVector256d child_germline_probability;
RowVector256d parent_probability; // P(R|mom and dad genotype)
RowVector256d root_mat; // P(R|mom and dad genotype) * P(mom and dad genotype)
double sum; // P(R)
} denominator, numerator;
};
#endif