ModulePreservation: ModulePreservation

View source: R/ModulePreservation.R

ModulePreservationR Documentation

ModulePreservation

Description

Computes module preservation statistics in a query dataset for a given reference dataset

Usage

ModulePreservation(
  seurat_obj,
  seurat_ref,
  name,
  n_permutations = 500,
  parallel = FALSE,
  seed = 12345,
  gene_mapping = NULL,
  genome1_col = NULL,
  genome2_col = NULL,
  return_raw = FALSE,
  wgcna_name = NULL,
  wgcna_name_ref = NULL,
  ...
)

Arguments

seurat_obj

A Seurat object

seurat_ref

A Seurat object serving as the reference for the module preservation analysis

name

The name to give the module preservation analysis.

n_permutations

Number of permutations for the module preservation test.

parallel

logical determining whether to run preservation analysis in parallel

seed

random seed for the permutation analysis.

return_raw

if TRUE, returns the module preservation statistics, else returns seurat_obj with the stats added to the hdWGCNA experiment.

wgcna_name

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

wgcna_name_ref

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

Examples

ModulePreservation

smorabit/scWGCNA documentation built on April 4, 2024, 10:32 a.m.