-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolocalisation.h
More file actions
49 lines (36 loc) · 1.09 KB
/
colocalisation.h
File metadata and controls
49 lines (36 loc) · 1.09 KB
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
// this object will wrap all functionalities needed to compute the colocalisation matrix
#ifndef COLOCALISATION_H
#define COLOCALISATION_H
#include "parsemtx.h"
#include "parsing.h"
#include "parsefile.h"
#include "computation.h"
class colocalisation : public computation
{
public:
colocalisation(): computation(){};
colocalisation(parsefile files, int rows = 0, int cols = 0) : computation(files,rows,cols){};
~colocalisation();
void compute();
void saveToFile(std::string filename);
void setM(double m){this->m = m;};
void setP(double p){this->p = p;};
Eigen::MatrixXd getColocalisationMatrix(){return *A_colocalisation;};
private:
Eigen::MatrixXd* A_distance;
Eigen::MatrixXd* A_linkage;
Eigen::MatrixXd* A_combine;
Eigen::MatrixXd* A_compare;
Eigen::MatrixXd* A_colocalisation;
std::string geneNamesFile, spatialFile, expressionFile;
// linkage parameters
double m = 5000;
double p = 2;
// private methods
void step1();
void step2();
void step3();
void step4();
void step5();
};
#endif // COLOCALISATION_H