forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintegration.h
33 lines (29 loc) · 944 Bytes
/
integration.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
#ifndef CORRECT_EXPRESSION
#define CORRECT_EXPRESSION
#include <RcppEigen.h>
#include <unordered_map>
using namespace Rcpp;
//----------------------------------------------------
Eigen::SparseMatrix<double> FindWeightsC(
Eigen::SparseMatrix<double> integration_matrix,
NumericVector cells2,
Eigen::MatrixXd distances,
std::vector<std::string> anchor_cells2,
std::vector<std::string> integration_matrix_rownames,
Eigen::MatrixXd cell_index,
Eigen::VectorXd anchor_score,
double min_dist,
double sd,
bool display_progress
);
Eigen::SparseMatrix<double> IntegrateDataC(
Eigen::SparseMatrix<double> integration_matrix,
Eigen::SparseMatrix<double> weights,
Eigen::SparseMatrix<double> expression_cells2
);
Eigen::SparseMatrix<double> SNNAnchor(
Eigen::SparseMatrix<double> k_matrix,
Eigen::SparseMatrix<double> anchor_only
);
//----------------------------------------------------
#endif//CORRECT_EXPRESSION