View source: R/Test_PCA_dim_Harmony.R
Test_PCA_dim_Harmony | R Documentation |
This function allows you to compare different no. of PCAs for Harmony. Cluster Resolution is set to 0.1.
Test_PCA_dim_Harmony( Temp.object, saveDIR, IdentToBatchCorrect = "orig.ident", ThetaToBatchCorrect = 2, SuffixName = "Testing_PCA_Dim", ColNamesToPlot = ColNamesToPlot, ColPaletteToPlot = ColPaletteToPlot, mingenes = 500, PCAdimList = c(20, 25, 30, 40, 50), 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 (Max 1) |
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 |
ColNamesToPlot |
Vector of identities to plot (Max = 3) |
ColPaletteToPlot |
list of color palettes to plot for the identities (Max = 3) |
mingenes |
minimum gene number that will be mentioned in the output file name |
PCAdimList |
Vector of the PCAs to be used for testing |
DownSamplePCA |
#Cells to plot in UMAP for PCA testing |
Test_PCA_dim_Harmony()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.