separability_pairwise: separability_pairwise

Description Usage Arguments Value

View source: R/separability.R

Description

Calculate separability for every sample pair. The higher the more separable.

Usage

1
separability_pairwise(tsne_coord, group, sample_label, k = 5)

Arguments

tsne_coord

A dataframe of the two dimension t-SNE coordinates of each cell in the combined sample.

group

A vector of group assignment for each cell, with the same order as the tsne_coord.

sample_label

A vector of sample labels for each cell, with the same order as the tsne_coord.

k

K-nearest neighbours used to calculate distance. DEFAULT is 5.

Value

A matrix of separability for each sample pair (column) and each group (row).


xgaoo/ClusterMap documentation built on Oct. 9, 2021, 5:31 a.m.