Learn R Programming

scater (version 1.0.4)

cellPairwiseDistances: cellPairwiseDistances in an SCESet object

Description

SCESet objects can contain a matrix of pairwise distances between cells. These functions conveniently access and replace the cell pairwise distances with the value supplied, which must be a matrix of the correct size. The function cellDist is simply shorthand for cellPairwiseDistances.

Usage

cellPairwiseDistances(object)
cellPairwiseDistances(object) <- value
cellDist(object)
cellDist(object) <- value
cellPairwiseDistances.SCESet(object)
"cellPairwiseDistances"(object)
cellDistSCESet(object)
"cellDist"(object)
"cellPairwiseDistances"(object) <- value
"cellDist"(object) <- value

Arguments

object
a SCESet object.
value
a matrix of class "numeric" containing cell pairwise distances

Value

An SCESet object containing new cell pairwise distances matrix.

Examples

Run this code
data("sc_example_counts")
data("sc_example_cell_info")
pd <- new("AnnotatedDataFrame", data = sc_example_cell_info)
example_sceset <- newSCESet(countData = sc_example_counts, phenoData = pd)
cellPairwiseDistances(example_sceset)

Run the code above in your browser using DataLab