Final_ChosenPCA_and_Res_Harmony: A Final_ChosenPCA_and_Res_Harmony Function

View source: R/Final_ChosenPCA_and_Res_Harmony.R

Final_ChosenPCA_and_Res_HarmonyR Documentation

A Final_ChosenPCA_and_Res_Harmony Function

Description

This function allows you to perform differential gene analysis.

Usage

Final_ChosenPCA_and_Res_Harmony(
  Temp.object,
  saveDIR,
  IdentToBatchCorrect = "orig.ident",
  ThetaToBatchCorrect = 2,
  SuffixName = "Testing_PCA_Dim",
  ColNamesToPlot = ColNamesToPlot,
  ColPaletteToPlot = ColPaletteToPlot,
  mingenes = 500,
  ChosenPCA = 25,
  ChosenRes = 0.1,
  ClusOrder = ClusOrderFrom1
)

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 (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

ChosenPCA

ChosenPCA

ChosenRes

ChosenRes

Examples

Final_ChosenPCA_and_Res_Harmony()

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