forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddMetaData.Rd
38 lines (35 loc) · 1.16 KB
/
AddMetaData.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/interaction.R
\name{AddMetaData}
\alias{AddMetaData}
\title{Add Metadata}
\usage{
AddMetaData(object, metadata, col.name = NULL)
}
\arguments{
\item{object}{Seurat object}
\item{metadata}{Data frame where the row names are cell names (note : these
must correspond exactly to the items in [email protected]), and the columns
are additional metadata items.}
\item{col.name}{Name for metadata if passing in single vector of information}
}
\value{
Seurat object where the additional metadata has been added as
columns in [email protected]
}
\description{
Adds additional data for single cells to the Seurat object. Can be any piece
of information associated with a cell (examples include read depth,
alignment rate, experimental batch, or subpopulation identity). The
advantage of adding it to the Seurat object is so that it can be
analyzed/visualized using FetchData, VlnPlot, GenePlot, SubsetData, etc.
}
\examples{
cluster_letters <- LETTERS[pbmc_small@ident]
pbmc_small <- AddMetaData(
object = pbmc_small,
metadata = cluster_letters,
col.name = 'letter.idents'
)
head(x = [email protected])
}