VBatch {BDMMAcorrect}R Documentation

Visualize batch effect with principal coordinate analysis

Description

Visualize batch effect with principal coordinate analysis

Usage

VBatch(Microbiome_dat, main_variable = NULL, method = "bray")

Arguments

Microbiome_dat

A SummarizedExperiment object that includes the taxonomy read counts, phenotypes and batch labels.

main_variable

Optional. A vector containing the main effect variable. Only for categorical main effect variable.The function will generate a figure for each catagory.

method

A string indicating which method should be used to calculate the distance matrix for principal coordinate analysis.

Value

The function returns a list containing plot objects of principal coordinate analysis figures.

Examples

data(Microbiome_dat)
figure <- VBatch(Microbiome_dat, method = "bray")
print(figure)

[Package BDMMAcorrect version 1.8.0 Index]