Learn R Programming

scater (version 1.0.4)

featurePairwiseDistances: featurePairwiseDistances in an SCESet object

Description

SCESet objects can contain a matrix of pairwise distances between features (e.g. genes, transcripts). These functions conveniently access and replace the gene pairwise distances with the value supplied, which must be a matrix of the correct size. The function featDist is simply shorthand for featurePairwiseDistances.

Usage

featurePairwiseDistances(object)
featurePairwiseDistances(object) <- value
featDist(object)
featDist(object) <- value
featurePairwiseDistancesSCESet(object)
"featurePairwiseDistances"(object)
featDistSCESet(object)
"featDist"(object)
"featurePairwiseDistances"(object) <- value
"featDist"(object) <- value

Arguments

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

Value

An SCESet object containing new feature 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)
featurePairwiseDistances(example_sceset)

Run the code above in your browser using DataLab