Run fitExtractVarPartModel to evaluate the effect of each metadata variable on your data.

run_variancePartition(
  obj,
  metadata = NULL,
  nCores = NULL,
  form = NULL,
  is_opengwas = FALSE,
  show_plot = TRUE,
  ...
)

Arguments

obj

Matrix or Seurat object to run fitExtractVarPartModel on.

metadata

data.frame containing metadata to use in form. If obj is a Seurat object, this can be left NULL and metadata will be extracted automatically.

nCores

Number of cores to use in parallel.

is_opengwas

Whether the data comes from OpenGWAS. If TRUE, a predefined formula and metadata processing procedure will be used.

...

Additional arguments passed to fitExtractVarPartModel.