swh:1:snp:0da231f3ffdb3226650880f1b61d5d5cdcbd749b
Tip revision: fe93b05745e55ec2f66e3f0b4c4196aad9f4d5a7 authored by Paul Hoffman on 28 September 2020, 16:44:04 UTC
Merge pull request #3548 from satijalab/develop
Merge pull request #3548 from satijalab/develop
Tip revision: fe93b05
snn.h
#ifndef SNN
#define SNN
#include <RcppEigen.h>
#include "data_manipulation.h"
#include <progress.hpp>
#include <cmath>
#include <unordered_map>
#include <fstream>
#include <string>
#include <iomanip>
using namespace Rcpp;
//----------------------------------------------------
Eigen::SparseMatrix<double> ComputeSNN(Eigen::MatrixXd nn_ranked);
void WriteEdgeFile(Eigen::SparseMatrix<double> snn, String filename, bool display_progress);
Eigen::SparseMatrix<double> DirectSNNToFile(Eigen::MatrixXd nn_ranked, double prune, bool display_progress, String filename);
//----------------------------------------------------
#endif//SNN