separability_by_group: separability_by_group

Description Usage Arguments Value

View source: R/separability.R

Description

Calculate separability for each group in a pair of samples. Internal function called by separability_pairwise.

Usage

1
separability_by_group(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 vector of separability for each group.


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