Learn R Programming

cellTree (version 1.2.2)

get.cell.dists: Cell Pairwise-Distance Matrix

Description

Computes the pairwise distance between cells, based on the topic histograms form a fitted LDA model.

Usage

get.cell.dists(lda.results)

Arguments

lda.results
A fitted LDA model, as returned by compute.lda

Value

A square matrix of pairwise distance between cells in the input model.

Details

Distances between histograms are computed using the Chi-square distance

Examples

Run this code
# Load pre-computed LDA model for skeletal myoblast RNA-Seq data from HSMMSingleCell package:
data(HSMM_lda_model)

# Compute cell pairwise distances:
b.tree = get.cell.dists(HSMM_lda_model)

Run the code above in your browser using DataLab