reclusterFilteredSeuratObject.Rd
This template reclusters a filtered Seurat object.
reclusterFilteredSeuratObject(
object,
prepend.txt = "old",
old.columns.to.save,
number.of.pcs = 50,
cluster.resolution.low.range = 0.2,
cluster.resolution.high.range = 1.2,
cluster.resolution.range.bins = 0.2,
reduction.type = "tsne"
)
The input Seurat Object.
Text to prepend to old columns to make them unique from new. Default is "old".
Old seurat clustering columns (e.g. SCT_snn_res.0.4) to save.
Select the number of principal components for your analysis. Set to 0 to automatically decide. Default is 50.
Select minimum resolution for clustering plots. The lower you set this, the FEWER clusters will be generated. Default is 0.2.
Select maximum resolution for clustering plots. The higher you set this, the MORE clusters will be generated. Default is 1.2.
Select the bins for your cluster plots. For example, if you input 0.2 as your bin, and have low/high resolution ranges of 0.2 and 0.6, then the template will produce cluster plots at resolutions of 0.2, 0.4 and 0.6. Default is 0.2.
Select the kind of clustering visualization you would like to use to visualize the cell type results ("umap", "tsne", "pca"). Default is "tsne".
Function returns a reclustered Seurat Object with new clustering columns and renamed original clustering columns, along with a plot of the new dimsensionality reduction.
This method reclusters the filtered SO, preserving the original SCT clustering columns with a prepended prefix, and making new SCT clustering columns based on the reclustering. The image returned is the reclustered project.