get.cell.dists {cellTree} | R Documentation

## 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`

### Details

Distances between histograms are computed using the Chi-square distance

### Value

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

### Examples

    # 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)

[Package cellTree version 1.16.0 Index]