Add features data to the Assay, Assay5 or Seurat object.
Usage
AddFeaturesData(object, ...)
# S3 method for class 'Seurat'
AddFeaturesData(object, features, assay = NULL, ...)
# S3 method for class 'Assay'
AddFeaturesData(object, features, ...)
# S3 method for class 'Assay5'
AddFeaturesData(object, features, ...)Arguments
- object
A
Assay,Assay5orSeuratobject.- ...
Additional arguments passed to the method.
- features
Features data to add.
- assay
Which assay to use. If
NULL, the default assay of the Seurat object will be used. When the object also containsChromatinAssay, the default assay and additionalChromatinAssaywill be preprocessed sequentially.
Examples
data(pancreas_sub)
features <- GetFeaturesData(pancreas_sub)
pancreas_sub <- AddFeaturesData(pancreas_sub, features)