View source: R/process_seurat.R
process_seurat | R Documentation |
Seurat
objectRun a standardised Seurat pipeline on
a Seurat object
or raw counts
and meta.data
.
Automatically performs
FindVariableFeatures
Variable feature selection
NormalizeData
Data normalization
RunPCA
PCA
RunUMAP
UMAP
FindNeighbors
K-nearest neighbors
FindClusters
Clustering
process_seurat(
obj = NULL,
meta.data = NULL,
nfeatures = 2000,
vars.to.regress = NULL,
dims = seq(50),
add_specificity = FALSE,
default_assay = NULL,
n.components = 2L,
log_norm = FALSE,
cluster_reduction = "umap",
workers = 1,
max_mem = 8000 * 1024^2,
seed = 2020,
verbose = TRUE
)
obj |
A single-cell object supported by scKirby. See converters for a table of all supported conversions. |
meta.data |
Additional cell-level metadata to add to the Seurat object.
Should be a |
nfeatures |
Number of features to select as top variable features;
only used when |
vars.to.regress |
Variables to regress out (previously latent.vars in RegressOut). For example, nUMI, or percent.mito. |
dims |
Which dimensions to use as input features, used only if
|
add_specificity |
Add a new assay called "specificity" by deriving specificity scores from the input data. |
default_assay |
Default assay to set with DefaultAssay. |
n.components |
The dimension of the space to embed into. |
log_norm |
Log-normalise the data with LogNormalize. |
cluster_reduction |
Recompute neighbors graph based on UMAP to get clusters that best reflect UMAP space. For this same reason, only cluster in two dimensions, because this is the view we most often use. That said, this may reduce the generalisability of these clusters/graph. |
workers |
Number of workers (threads) to parallelise processes across using future. |
max_mem |
Max limit on memory usage, to be passed to environmental
variable |
seed |
Random seed to set. |
verbose |
Print messages. |
A preprocessed Seurat object.
obj <- example_obj("list")
obj2 <- process_seurat(obj = obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.