forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetAssayData.Rd
38 lines (31 loc) · 1.09 KB
/
GetAssayData.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/objects.R
\name{GetAssayData}
\alias{GetAssayData}
\alias{GetAssayData.Assay}
\alias{GetAssayData.Seurat}
\title{General accessor function for the Assay class}
\usage{
GetAssayData(object, ...)
\method{GetAssayData}{Assay}(object, slot = "data", ...)
\method{GetAssayData}{Seurat}(object, slot = "data", assay = NULL, ...)
}
\arguments{
\item{object}{An object}
\item{...}{Arguments passed to other methods}
\item{slot}{Specific information to pull (i.e. counts, data, scale.data, ...)}
\item{assay}{Name of assay to pull data from}
}
\value{
Returns info from requested slot
}
\description{
This function can be used to pull information from any of the slots in the Assay class. For
example, pull one of the data matrices("counts", "data", or "scale.data").
}
\examples{
# Get the data directly from an Assay object
GetAssayData(object = pbmc_small[["RNA"]], slot = "data")[1:5,1:5]
# Get the data from a specific Assay in a Seurat object
GetAssayData(object = pbmc_small, assay = "RNA", slot = "data")[1:5,1:5]
}