Learn R Programming

ComBatFamQC (version 1.0.5)

comfam_shiny: Batch Effect Interactive Visualization

Description

Provides an interactive visualization of batch or site effects using a Shiny application.

Usage

comfam_shiny(result, after = FALSE)

Value

This function does not return a value. It launches a Shiny app.

Arguments

result

A list derived from visual_prep() that contains datasets and statistical test results for Shiny visualization.

after

A boolean variable indicating whether the batch effect diagnostic occurs before or after harmonization (default: FALSE).

Details

When this function is called, it starts a Shiny application in the user's default web browser. Execution is blocked until the app is closed.

Examples

Run this code
result_lm <- visual_prep(type = "lm", features = colnames(adni)[43:53],
batch = "manufac", covariates = c("AGE", "SEX", "DIAGNOSIS"),
df = head(adni, 500), cores = 1)
if (interactive()) {
  comfam_shiny(result = result_lm)
}

Run the code above in your browser using DataLab