forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RcppExports.cpp
395 lines (389 loc) · 21.9 KB
/
RcppExports.cpp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppEigen.h>
#include <Rcpp.h>
using namespace Rcpp;
// RunModularityClusteringCpp
IntegerVector RunModularityClusteringCpp(Eigen::SparseMatrix<double> SNN, int modularityFunction, double resolution, int algorithm, int nRandomStarts, int nIterations, int randomSeed, bool printOutput, std::string edgefilename);
RcppExport SEXP _Seurat_RunModularityClusteringCpp(SEXP SNNSEXP, SEXP modularityFunctionSEXP, SEXP resolutionSEXP, SEXP algorithmSEXP, SEXP nRandomStartsSEXP, SEXP nIterationsSEXP, SEXP randomSeedSEXP, SEXP printOutputSEXP, SEXP edgefilenameSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type SNN(SNNSEXP);
Rcpp::traits::input_parameter< int >::type modularityFunction(modularityFunctionSEXP);
Rcpp::traits::input_parameter< double >::type resolution(resolutionSEXP);
Rcpp::traits::input_parameter< int >::type algorithm(algorithmSEXP);
Rcpp::traits::input_parameter< int >::type nRandomStarts(nRandomStartsSEXP);
Rcpp::traits::input_parameter< int >::type nIterations(nIterationsSEXP);
Rcpp::traits::input_parameter< int >::type randomSeed(randomSeedSEXP);
Rcpp::traits::input_parameter< bool >::type printOutput(printOutputSEXP);
Rcpp::traits::input_parameter< std::string >::type edgefilename(edgefilenameSEXP);
rcpp_result_gen = Rcpp::wrap(RunModularityClusteringCpp(SNN, modularityFunction, resolution, algorithm, nRandomStarts, nIterations, randomSeed, printOutput, edgefilename));
return rcpp_result_gen;
END_RCPP
}
// RunUMISampling
Eigen::SparseMatrix<double> RunUMISampling(Eigen::SparseMatrix<double> data, int sample_val, bool upsample, bool display_progress);
RcppExport SEXP _Seurat_RunUMISampling(SEXP dataSEXP, SEXP sample_valSEXP, SEXP upsampleSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type data(dataSEXP);
Rcpp::traits::input_parameter< int >::type sample_val(sample_valSEXP);
Rcpp::traits::input_parameter< bool >::type upsample(upsampleSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(RunUMISampling(data, sample_val, upsample, display_progress));
return rcpp_result_gen;
END_RCPP
}
// RunUMISamplingPerCell
Eigen::SparseMatrix<double> RunUMISamplingPerCell(Eigen::SparseMatrix<double> data, NumericVector sample_val, bool upsample, bool display_progress);
RcppExport SEXP _Seurat_RunUMISamplingPerCell(SEXP dataSEXP, SEXP sample_valSEXP, SEXP upsampleSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type data(dataSEXP);
Rcpp::traits::input_parameter< NumericVector >::type sample_val(sample_valSEXP);
Rcpp::traits::input_parameter< bool >::type upsample(upsampleSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(RunUMISamplingPerCell(data, sample_val, upsample, display_progress));
return rcpp_result_gen;
END_RCPP
}
// RowMergeMatrices
Eigen::SparseMatrix<double> RowMergeMatrices(Eigen::SparseMatrix<double, Eigen::RowMajor> mat1, Eigen::SparseMatrix<double, Eigen::RowMajor> mat2, std::vector< std::string > mat1_rownames, std::vector< std::string > mat2_rownames, std::vector< std::string > all_rownames);
RcppExport SEXP _Seurat_RowMergeMatrices(SEXP mat1SEXP, SEXP mat2SEXP, SEXP mat1_rownamesSEXP, SEXP mat2_rownamesSEXP, SEXP all_rownamesSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double, Eigen::RowMajor> >::type mat1(mat1SEXP);
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double, Eigen::RowMajor> >::type mat2(mat2SEXP);
Rcpp::traits::input_parameter< std::vector< std::string > >::type mat1_rownames(mat1_rownamesSEXP);
Rcpp::traits::input_parameter< std::vector< std::string > >::type mat2_rownames(mat2_rownamesSEXP);
Rcpp::traits::input_parameter< std::vector< std::string > >::type all_rownames(all_rownamesSEXP);
rcpp_result_gen = Rcpp::wrap(RowMergeMatrices(mat1, mat2, mat1_rownames, mat2_rownames, all_rownames));
return rcpp_result_gen;
END_RCPP
}
// LogNorm
Eigen::SparseMatrix<double> LogNorm(Eigen::SparseMatrix<double> data, int scale_factor, bool display_progress);
RcppExport SEXP _Seurat_LogNorm(SEXP dataSEXP, SEXP scale_factorSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type data(dataSEXP);
Rcpp::traits::input_parameter< int >::type scale_factor(scale_factorSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(LogNorm(data, scale_factor, display_progress));
return rcpp_result_gen;
END_RCPP
}
// Standardize
NumericMatrix Standardize(Eigen::Map<Eigen::MatrixXd> mat, bool display_progress);
RcppExport SEXP _Seurat_Standardize(SEXP matSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::Map<Eigen::MatrixXd> >::type mat(matSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(Standardize(mat, display_progress));
return rcpp_result_gen;
END_RCPP
}
// FastSparseRowScale
Eigen::MatrixXd FastSparseRowScale(Eigen::SparseMatrix<double> mat, bool scale, bool center, double scale_max, bool display_progress);
RcppExport SEXP _Seurat_FastSparseRowScale(SEXP matSEXP, SEXP scaleSEXP, SEXP centerSEXP, SEXP scale_maxSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< bool >::type scale(scaleSEXP);
Rcpp::traits::input_parameter< bool >::type center(centerSEXP);
Rcpp::traits::input_parameter< double >::type scale_max(scale_maxSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(FastSparseRowScale(mat, scale, center, scale_max, display_progress));
return rcpp_result_gen;
END_RCPP
}
// FastSparseRowScaleWithKnownStats
Eigen::MatrixXd FastSparseRowScaleWithKnownStats(Eigen::SparseMatrix<double> mat, NumericVector mu, NumericVector sigma, bool scale, bool center, double scale_max, bool display_progress);
RcppExport SEXP _Seurat_FastSparseRowScaleWithKnownStats(SEXP matSEXP, SEXP muSEXP, SEXP sigmaSEXP, SEXP scaleSEXP, SEXP centerSEXP, SEXP scale_maxSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< NumericVector >::type mu(muSEXP);
Rcpp::traits::input_parameter< NumericVector >::type sigma(sigmaSEXP);
Rcpp::traits::input_parameter< bool >::type scale(scaleSEXP);
Rcpp::traits::input_parameter< bool >::type center(centerSEXP);
Rcpp::traits::input_parameter< double >::type scale_max(scale_maxSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(FastSparseRowScaleWithKnownStats(mat, mu, sigma, scale, center, scale_max, display_progress));
return rcpp_result_gen;
END_RCPP
}
// FastCov
Eigen::MatrixXd FastCov(Eigen::MatrixXd mat, bool center);
RcppExport SEXP _Seurat_FastCov(SEXP matSEXP, SEXP centerSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type mat(matSEXP);
Rcpp::traits::input_parameter< bool >::type center(centerSEXP);
rcpp_result_gen = Rcpp::wrap(FastCov(mat, center));
return rcpp_result_gen;
END_RCPP
}
// FastCovMats
Eigen::MatrixXd FastCovMats(Eigen::MatrixXd mat1, Eigen::MatrixXd mat2, bool center);
RcppExport SEXP _Seurat_FastCovMats(SEXP mat1SEXP, SEXP mat2SEXP, SEXP centerSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type mat1(mat1SEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type mat2(mat2SEXP);
Rcpp::traits::input_parameter< bool >::type center(centerSEXP);
rcpp_result_gen = Rcpp::wrap(FastCovMats(mat1, mat2, center));
return rcpp_result_gen;
END_RCPP
}
// FastRBind
Eigen::MatrixXd FastRBind(Eigen::MatrixXd mat1, Eigen::MatrixXd mat2);
RcppExport SEXP _Seurat_FastRBind(SEXP mat1SEXP, SEXP mat2SEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type mat1(mat1SEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type mat2(mat2SEXP);
rcpp_result_gen = Rcpp::wrap(FastRBind(mat1, mat2));
return rcpp_result_gen;
END_RCPP
}
// FastExpMean
Eigen::VectorXd FastExpMean(Eigen::SparseMatrix<double> mat, bool display_progress);
RcppExport SEXP _Seurat_FastExpMean(SEXP matSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(FastExpMean(mat, display_progress));
return rcpp_result_gen;
END_RCPP
}
// SparseRowVar2
NumericVector SparseRowVar2(Eigen::SparseMatrix<double> mat, NumericVector mu, bool display_progress);
RcppExport SEXP _Seurat_SparseRowVar2(SEXP matSEXP, SEXP muSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< NumericVector >::type mu(muSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(SparseRowVar2(mat, mu, display_progress));
return rcpp_result_gen;
END_RCPP
}
// SparseRowVarStd
NumericVector SparseRowVarStd(Eigen::SparseMatrix<double> mat, NumericVector mu, NumericVector sd, double vmax, bool display_progress);
RcppExport SEXP _Seurat_SparseRowVarStd(SEXP matSEXP, SEXP muSEXP, SEXP sdSEXP, SEXP vmaxSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< NumericVector >::type mu(muSEXP);
Rcpp::traits::input_parameter< NumericVector >::type sd(sdSEXP);
Rcpp::traits::input_parameter< double >::type vmax(vmaxSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(SparseRowVarStd(mat, mu, sd, vmax, display_progress));
return rcpp_result_gen;
END_RCPP
}
// FastLogVMR
Eigen::VectorXd FastLogVMR(Eigen::SparseMatrix<double> mat, bool display_progress);
RcppExport SEXP _Seurat_FastLogVMR(SEXP matSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(FastLogVMR(mat, display_progress));
return rcpp_result_gen;
END_RCPP
}
// RowVar
NumericVector RowVar(Eigen::Map<Eigen::MatrixXd> x);
RcppExport SEXP _Seurat_RowVar(SEXP xSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::Map<Eigen::MatrixXd> >::type x(xSEXP);
rcpp_result_gen = Rcpp::wrap(RowVar(x));
return rcpp_result_gen;
END_RCPP
}
// SparseRowVar
Eigen::VectorXd SparseRowVar(Eigen::SparseMatrix<double> mat, bool display_progress);
RcppExport SEXP _Seurat_SparseRowVar(SEXP matSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(SparseRowVar(mat, display_progress));
return rcpp_result_gen;
END_RCPP
}
// ReplaceColsC
Eigen::SparseMatrix<double> ReplaceColsC(Eigen::SparseMatrix<double> mat, NumericVector col_idx, Eigen::SparseMatrix<double> replacement);
RcppExport SEXP _Seurat_ReplaceColsC(SEXP matSEXP, SEXP col_idxSEXP, SEXP replacementSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
Rcpp::traits::input_parameter< NumericVector >::type col_idx(col_idxSEXP);
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type replacement(replacementSEXP);
rcpp_result_gen = Rcpp::wrap(ReplaceColsC(mat, col_idx, replacement));
return rcpp_result_gen;
END_RCPP
}
// GraphToNeighborHelper
List GraphToNeighborHelper(Eigen::SparseMatrix<double> mat);
RcppExport SEXP _Seurat_GraphToNeighborHelper(SEXP matSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type mat(matSEXP);
rcpp_result_gen = Rcpp::wrap(GraphToNeighborHelper(mat));
return rcpp_result_gen;
END_RCPP
}
// fast_dist
List fast_dist(NumericMatrix x, NumericMatrix y, List n);
RcppExport SEXP _Seurat_fast_dist(SEXP xSEXP, SEXP ySEXP, SEXP nSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< NumericMatrix >::type x(xSEXP);
Rcpp::traits::input_parameter< NumericMatrix >::type y(ySEXP);
Rcpp::traits::input_parameter< List >::type n(nSEXP);
rcpp_result_gen = Rcpp::wrap(fast_dist(x, y, n));
return rcpp_result_gen;
END_RCPP
}
// FindWeightsC
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);
RcppExport SEXP _Seurat_FindWeightsC(SEXP cells2SEXP, SEXP distancesSEXP, SEXP anchor_cells2SEXP, SEXP integration_matrix_rownamesSEXP, SEXP cell_indexSEXP, SEXP anchor_scoreSEXP, SEXP min_distSEXP, SEXP sdSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< NumericVector >::type cells2(cells2SEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type distances(distancesSEXP);
Rcpp::traits::input_parameter< std::vector<std::string> >::type anchor_cells2(anchor_cells2SEXP);
Rcpp::traits::input_parameter< std::vector<std::string> >::type integration_matrix_rownames(integration_matrix_rownamesSEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type cell_index(cell_indexSEXP);
Rcpp::traits::input_parameter< Eigen::VectorXd >::type anchor_score(anchor_scoreSEXP);
Rcpp::traits::input_parameter< double >::type min_dist(min_distSEXP);
Rcpp::traits::input_parameter< double >::type sd(sdSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(FindWeightsC(cells2, distances, anchor_cells2, integration_matrix_rownames, cell_index, anchor_score, min_dist, sd, display_progress));
return rcpp_result_gen;
END_RCPP
}
// IntegrateDataC
Eigen::SparseMatrix<double> IntegrateDataC(Eigen::SparseMatrix<double> integration_matrix, Eigen::SparseMatrix<double> weights, Eigen::SparseMatrix<double> expression_cells2);
RcppExport SEXP _Seurat_IntegrateDataC(SEXP integration_matrixSEXP, SEXP weightsSEXP, SEXP expression_cells2SEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type integration_matrix(integration_matrixSEXP);
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type weights(weightsSEXP);
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type expression_cells2(expression_cells2SEXP);
rcpp_result_gen = Rcpp::wrap(IntegrateDataC(integration_matrix, weights, expression_cells2));
return rcpp_result_gen;
END_RCPP
}
// ScoreHelper
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);
RcppExport SEXP _Seurat_ScoreHelper(SEXP snnSEXP, SEXP query_pcaSEXP, SEXP query_distsSEXP, SEXP corrected_nnsSEXP, SEXP k_snnSEXP, SEXP subtract_first_nnSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type snn(snnSEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type query_pca(query_pcaSEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type query_dists(query_distsSEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type corrected_nns(corrected_nnsSEXP);
Rcpp::traits::input_parameter< int >::type k_snn(k_snnSEXP);
Rcpp::traits::input_parameter< bool >::type subtract_first_nn(subtract_first_nnSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
rcpp_result_gen = Rcpp::wrap(ScoreHelper(snn, query_pca, query_dists, corrected_nns, k_snn, subtract_first_nn, display_progress));
return rcpp_result_gen;
END_RCPP
}
// ComputeSNN
Eigen::SparseMatrix<double> ComputeSNN(Eigen::MatrixXd nn_ranked, double prune);
RcppExport SEXP _Seurat_ComputeSNN(SEXP nn_rankedSEXP, SEXP pruneSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type nn_ranked(nn_rankedSEXP);
Rcpp::traits::input_parameter< double >::type prune(pruneSEXP);
rcpp_result_gen = Rcpp::wrap(ComputeSNN(nn_ranked, prune));
return rcpp_result_gen;
END_RCPP
}
// WriteEdgeFile
void WriteEdgeFile(Eigen::SparseMatrix<double> snn, String filename, bool display_progress);
RcppExport SEXP _Seurat_WriteEdgeFile(SEXP snnSEXP, SEXP filenameSEXP, SEXP display_progressSEXP) {
BEGIN_RCPP
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type snn(snnSEXP);
Rcpp::traits::input_parameter< String >::type filename(filenameSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
WriteEdgeFile(snn, filename, display_progress);
return R_NilValue;
END_RCPP
}
// DirectSNNToFile
Eigen::SparseMatrix<double> DirectSNNToFile(Eigen::MatrixXd nn_ranked, double prune, bool display_progress, String filename);
RcppExport SEXP _Seurat_DirectSNNToFile(SEXP nn_rankedSEXP, SEXP pruneSEXP, SEXP display_progressSEXP, SEXP filenameSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type nn_ranked(nn_rankedSEXP);
Rcpp::traits::input_parameter< double >::type prune(pruneSEXP);
Rcpp::traits::input_parameter< bool >::type display_progress(display_progressSEXP);
Rcpp::traits::input_parameter< String >::type filename(filenameSEXP);
rcpp_result_gen = Rcpp::wrap(DirectSNNToFile(nn_ranked, prune, display_progress, filename));
return rcpp_result_gen;
END_RCPP
}
// SNN_SmallestNonzero_Dist
std::vector<double> SNN_SmallestNonzero_Dist(Eigen::SparseMatrix<double> snn, Eigen::MatrixXd mat, int n, std::vector<double> nearest_dist);
RcppExport SEXP _Seurat_SNN_SmallestNonzero_Dist(SEXP snnSEXP, SEXP matSEXP, SEXP nSEXP, SEXP nearest_distSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< Eigen::SparseMatrix<double> >::type snn(snnSEXP);
Rcpp::traits::input_parameter< Eigen::MatrixXd >::type mat(matSEXP);
Rcpp::traits::input_parameter< int >::type n(nSEXP);
Rcpp::traits::input_parameter< std::vector<double> >::type nearest_dist(nearest_distSEXP);
rcpp_result_gen = Rcpp::wrap(SNN_SmallestNonzero_Dist(snn, mat, n, nearest_dist));
return rcpp_result_gen;
END_RCPP
}
RcppExport SEXP isnull(SEXP);
static const R_CallMethodDef CallEntries[] = {
{"_Seurat_RunModularityClusteringCpp", (DL_FUNC) &_Seurat_RunModularityClusteringCpp, 9},
{"_Seurat_RunUMISampling", (DL_FUNC) &_Seurat_RunUMISampling, 4},
{"_Seurat_RunUMISamplingPerCell", (DL_FUNC) &_Seurat_RunUMISamplingPerCell, 4},
{"_Seurat_RowMergeMatrices", (DL_FUNC) &_Seurat_RowMergeMatrices, 5},
{"_Seurat_LogNorm", (DL_FUNC) &_Seurat_LogNorm, 3},
{"_Seurat_Standardize", (DL_FUNC) &_Seurat_Standardize, 2},
{"_Seurat_FastSparseRowScale", (DL_FUNC) &_Seurat_FastSparseRowScale, 5},
{"_Seurat_FastSparseRowScaleWithKnownStats", (DL_FUNC) &_Seurat_FastSparseRowScaleWithKnownStats, 7},
{"_Seurat_FastCov", (DL_FUNC) &_Seurat_FastCov, 2},
{"_Seurat_FastCovMats", (DL_FUNC) &_Seurat_FastCovMats, 3},
{"_Seurat_FastRBind", (DL_FUNC) &_Seurat_FastRBind, 2},
{"_Seurat_FastExpMean", (DL_FUNC) &_Seurat_FastExpMean, 2},
{"_Seurat_SparseRowVar2", (DL_FUNC) &_Seurat_SparseRowVar2, 3},
{"_Seurat_SparseRowVarStd", (DL_FUNC) &_Seurat_SparseRowVarStd, 5},
{"_Seurat_FastLogVMR", (DL_FUNC) &_Seurat_FastLogVMR, 2},
{"_Seurat_RowVar", (DL_FUNC) &_Seurat_RowVar, 1},
{"_Seurat_SparseRowVar", (DL_FUNC) &_Seurat_SparseRowVar, 2},
{"_Seurat_ReplaceColsC", (DL_FUNC) &_Seurat_ReplaceColsC, 3},
{"_Seurat_GraphToNeighborHelper", (DL_FUNC) &_Seurat_GraphToNeighborHelper, 1},
{"_Seurat_fast_dist", (DL_FUNC) &_Seurat_fast_dist, 3},
{"_Seurat_FindWeightsC", (DL_FUNC) &_Seurat_FindWeightsC, 9},
{"_Seurat_IntegrateDataC", (DL_FUNC) &_Seurat_IntegrateDataC, 3},
{"_Seurat_ScoreHelper", (DL_FUNC) &_Seurat_ScoreHelper, 7},
{"_Seurat_ComputeSNN", (DL_FUNC) &_Seurat_ComputeSNN, 2},
{"_Seurat_WriteEdgeFile", (DL_FUNC) &_Seurat_WriteEdgeFile, 3},
{"_Seurat_DirectSNNToFile", (DL_FUNC) &_Seurat_DirectSNNToFile, 4},
{"_Seurat_SNN_SmallestNonzero_Dist", (DL_FUNC) &_Seurat_SNN_SmallestNonzero_Dist, 4},
{"isnull", (DL_FUNC) &isnull, 1},
{NULL, NULL, 0}
};
RcppExport void R_init_Seurat(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}