View source: R/Test_Cluster_Resolution_Harmony.R
Test_Cluster_Resolution_Harmony | R Documentation |
This function allows you to compare different cluster resolutions.
Test_Cluster_Resolution_Harmony( Temp.object, saveDIR, IdentToBatchCorrect = "orig.ident", ThetaToBatchCorrect = 2, SuffixName = "Testing_Cluster_Resolution", ColToPlot = ColToPlot, ColPaletteToPlot = ColPaletteToPlot, mingenes = 500, PCAuse = 25, ClusResList = c(0.1, 0.15, 0.2, 0.3), ClusOrder = ClusOrderFrom1, DownSamplePCA = 1000 )
Temp.object |
Seurat objects to be used for the QC plots. |
saveDIR |
Directory to save the plots. |
IdentToBatchCorrect |
Identity to be used for Harmony batch correction |
ThetaToBatchCorrect |
Theta values to be used while running harmony. Diversity clustering penalty parameter. Specify for each variable in group.by.vars. Default theta=2. theta=0 does not encourage any diversity. Larger values of theta result in more diverse clusters. |
SuffixName |
Suffix. to be added in the directory name as |
ColToPlot |
Mention one ident only |
ColPaletteToPlot |
Mention one palette only for the ident |
mingenes |
minimum gene number that will be mentioned in the output file name |
PCAuse |
PCA dim to use |
ClusResList |
Vector of the PCAs to be used for testing |
DownSamplePCA |
#Cells to plot in UMAP for PCA testing |
Test_Cluster_Resolution_Harmony()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.