Test_Cluster_Resolution_Harmony: A Test_Cluster_Resolution_Harmony Function

View source: R/Test_Cluster_Resolution_Harmony.R

Test_Cluster_Resolution_HarmonyR Documentation

A Test_Cluster_Resolution_Harmony Function

Description

This function allows you to compare different cluster resolutions.

Usage

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
)

Arguments

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

Examples

Test_Cluster_Resolution_Harmony()

parveendabas/SCA documentation built on Sept. 19, 2022, 8:31 a.m.