Old R based implementation of ScaleData. Scales and centers the data
ScaleDataR(object, genes.use = NULL, data.use = NULL, do.scale = TRUE,
do.center = TRUE, scale.max = 10)
Seurat object
Vector of gene names to scale/center. Default is all genes in object@data.
Can optionally pass a matrix of data to scale, default is object@data[genes.use,]
Whether to scale the data.
Whether to center the data.
Max value to accept for scaled data. The default is 10. Setting this can help reduce the effects of genes that are only expressed in a very small number of cells.
Returns a seurat object with object@scale.data updated with scaled and/or centered data.