pData: Replaces phenoData in an SCESet object

Description Usage Arguments Value Examples

Description

SCESet objects contain phenotype information (inherited from the ExpressionSet class). This function conveniently replaces the phenotype data with the value supplied, which must be an AnnotatedDataFrame.

Usage

1
2
3
4
5
## S4 replacement method for signature 'SCESet,AnnotatedDataFrame'
pData(object) <- value

## S4 replacement method for signature 'SCESet,data.frame'
pData(object) <- value

Arguments

object

An SCESet object.

value

an AnnotatedDataFrame with updated phenoData to replace existing

Value

A matrix of expression count data, where rows correspond to features (e.g. genes) and columns correspond to cells.

Examples

1
2
3
4
5
6
7
8
## Not run: 
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)
pData(example_sceset)

## End(Not run)

dynverse/scaterlegacy documentation built on Feb. 17, 2020, 5:07 a.m.