variation_ratios: Creates Ratios of batch to variable variation statistic

View source: R/variation_ratios.R

variation_ratiosR Documentation

Creates Ratios of batch to variable variation statistic

Description

Creates Ratios of batch to variable variation statistic

Usage

variation_ratios(ex_variation_table, batch)

Arguments

ex_variation_table

table of explained variation results from batchqc_explained_variation

batch

batch

Value

dataframe with condition/batch ratios

Examples

library(scran)
se <- mockSCE()
se$Mutation_Status <- as.factor(se$Mutation_Status)
se$Treatment <- as.factor(se$Treatment)
expl_var_result <- batchqc_explained_variation(se, batch = "Mutation_Status",
                            condition = "Treatment", assay_name = "counts")
ratios_results <- variation_ratios(expl_var_result[[1]],
    batch = "Mutation_Status")
ratios_results

compbiomed/BatchQC documentation built on Nov. 16, 2024, 5:47 a.m.