Learn R Programming

Seurat (version 2.1.0)

GetAssayData: Accessor function for multimodal data

Description

Pull information for specified stored dimensional reduction analysis

Usage

GetAssayData(object, assay.type = "RNA", slot = "data")

Arguments

object

Seurat object

assay.type

Type of assay to fetch data for (default is RNA)

slot

Specific information to pull (i.e. raw.data, data, scale.data,...). Default is data

Value

Returns assay data

Examples

Run this code
# NOT RUN {
# Simulate CITE-Seq results
df <- t(x = data.frame(
  x = round(x = rnorm(n = 80, mean = 20, sd = 2)),
  y = round(x = rbinom(n = 80, size = 100, prob = 0.2))
))
pbmc_small <- SetAssayData(
  object = pbmc_small,
  assay.type = 'CITE',
  new.data = df,
  slot = 'raw.data'
)
GetAssayData(object = pbmc_small, assay.type = 'CITE', slot = 'raw.data')

# }

Run the code above in your browser using DataLab