compute_simpson_index: Compute the Local Inverse Simpson Index (LISI)

Description Usage Arguments

View source: R/RcppExports.R

Description

Compute the Local Inverse Simpson Index (LISI)

Usage

1
2
3
4
5
6
7
8
compute_simpson_index(
  D,
  knn_idx,
  batch_labels,
  n_batches,
  perplexity = 15,
  tol = 1e-05
)

Arguments

D

Distance matrix of K nearest neighbors.

knn_idx

Adjacency matrix of K nearest neighbors.

batch_labels

A categorical variable.

n_batches

The number of categories in the categorical variable.

perplexity

The effective number of neighbors around each cell.

tol

Stop when the score converges to this tolerance.


scPOP documentation built on Aug. 4, 2021, 5:06 p.m.