View source: R/seurat_helpers.R
add.meta.data | R Documentation |
When creating a Seurat object with, for example, Read10X
, no metadata
is loaded automatically, even though cellranger aggregate
gives you
a nice aggregation csv. The cell barcodes just contain a numerical suffix to
indicate which library they're from. It's useful to have all the metadata
associated with each library as part of the Seurat object, so this function
parses each cell barcode to figure out what gem group the cell came from,
and then applies gem-group-level metadata contained in a table to the cell.
add.meta.data(seurat, meta.data)
seurat |
A seurat object. |
meta.data |
A table containing gem-group-level metadata to be added to
|
The seurat object with metadata added.
meta.data <- read.csv('aggregation.csv') seurat <- add.meta.data(seurat, meta.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.