Revision 74905f1be2f14438e55b8cd3c96e89e6d13b4857 authored by Gesmira on 10 January 2024, 16:15:10 UTC, committed by Gesmira on 10 January 2024, 16:15:10 UTC
1 parent 4f8231c
Raw File
integration.h
#ifndef CORRECT_EXPRESSION
#define CORRECT_EXPRESSION

#include <RcppEigen.h>
#include <unordered_map>

using namespace Rcpp;

//----------------------------------------------------
Eigen::SparseMatrix<double> FindWeightsC(
  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
);
std::vector<double> ScoreHelper(
    Eigen::SparseMatrix<double> snn,
    Eigen::MatrixXd query_pca,
    Eigen::MatrixXd query_dists,
    Eigen::MatrixXd corrected_nns,
    int k_snn,
    bool subtract_first_nn,
    bool display_progress
);
//----------------------------------------------------

#endif//CORRECT_EXPRESSION
back to top