ModuleTraitCorrelation: ModuleTraitCorrelation'

View source: R/ModuleTraitCorrelation.R

ModuleTraitCorrelationR Documentation

ModuleTraitCorrelation'

Description

Correlates categorical and numeric variables with Module Eigengenes or hub-gene scores.

Usage

ModuleTraitCorrelation(
  seurat_obj,
  traits,
  group.by = NULL,
  features = "hMEs",
  cor_method = "pearson",
  subset_by = NULL,
  subset_groups = NULL,
  wgcna_name = NULL,
  ...
)

Arguments

seurat_obj

A list of column names in the Seurat object's metadata that you wish to correlate with each module. Traits must be a categorical variable (not a character vector), or a numeric variable.

features

Which features to use to summarize each modules? Valid choices are hMEs, MEs, or scores

wgcna_name

The name of the hdWGCNA experiment in the seurat_obj@misc slot

cor_meth

Which method to use for correlation? Valid choices are pearson, spearman, kendall.

Examples

ModuleTraitCorrelation

smorabit/hdWGCNA documentation built on July 20, 2024, 8:58 p.m.