powered by
Get and set feature and cell inames in Seurat objects
Seurat
# S3 method for Seurat dimnames(x)# S3 method for Seurat dimnames(x) <- value
# S3 method for Seurat dimnames(x) <- value
dimnames: A two-length list with the following values:
dimnames
A character vector with all features in the default assay
A character vector with all cells in x
x
dimnames<-: x with the feature and/or cell names updated to value
dimnames<-
value
A Seurat object
A two-length list with updated feature and/or cells names
Seurat object, validity, and interaction methods $.Seurat(), Seurat-class, Seurat-validity, [[.Seurat(), [[<-,Seurat, [[<-,Seurat,NULL, dim.Seurat(), merge.Seurat(), names.Seurat(), subset.Seurat()
$.Seurat()
Seurat-class
Seurat-validity
[[.Seurat()
[[<-,Seurat
[[<-,Seurat,NULL
dim.Seurat()
merge.Seurat()
names.Seurat()
subset.Seurat()
Cells(), dimnames.Assay(), dimnames.Assay5()
Cells()
dimnames.Assay()
dimnames.Assay5()
# Get the feature names of an object head(rownames(pbmc_small)) # Get the cell names of an object head(colnames(pbmc_small)) colnames(pbmc_small)[1] <- "newcell" head(colnames(pbmc_small))
Run the code above in your browser using DataLab