Description Usage Arguments Value Examples
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").
1 2 3 4 5 6 7 | GetAssayData(object, ...)
## S3 method for class 'Assay'
GetAssayData(object, slot = "data", ...)
## S3 method for class 'Seurat'
GetAssayData(object, slot = "data", assay = NULL, ...)
|
object |
An object |
... |
Arguments passed to other methods |
slot |
Specific information to pull (i.e. counts, data, scale.data, ...) |
assay |
Name of assay to pull data from |
Returns info from requested slot
1 2 3 4 5 | # 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]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.