View source: R/extract_sc_data.R
extract_sc_data | R Documentation |
Extract and combine data frame with cells as rows and features as columns from Seurat assay data.
extract_sc_data(
sce,
vars = NULL,
assay,
slot = "scale.data",
combine_meta_data = TRUE
)
sce |
Seurat object |
vars |
Vector of variables as features |
assay |
Assay to pull data from |
slot |
Specific assay data to get or set |
combine_meta_data |
Whether to combine metadata with the extracted data frame |
Data frame with cells as rows and features as columns
Dongqiang Zeng
#Load data
data("pbmc_small")
pbmc_small
#Choose features
vars<-c("PPBP", "IGLL5", "VDAC3", "CD1C", "AKR1C3", "PF4", "MYL9", "GNLY", "TREML1", "CA2")
#Get extracted data frame
eset<-extract_sc_data(sce= pbmc_small, vars= vars, assay= "RNA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.