powered by
Uses L1-constrained linear models (LASSO) to impute single cell gene expression values.
AddImputedScore(object, genes.use = NULL, genes.fit = NULL, s.use = 20, do.print = FALSE, gram = TRUE)
Seurat object
A vector of genes (predictors) that can be used for building the LASSO models.
A vector of genes to impute values for
Maximum number of steps taken by the algorithm (lower values indicate a greater degree of smoothing)
Print progress (output the name of each gene after it has been imputed).
The use.gram argument passed to lars
Returns a Seurat object where the imputed values have been added to object@imputed
# NOT RUN { pbmc_small <- AddImputedScore(object = pbmc_small, genes.fit = "MS4A1") # }
Run the code above in your browser using DataLab