Learn R Programming

BatchQC (version 1.0.17)

batchqc_explained_variation: Returns a list of explained variation by batch and condition combinations

Description

Returns a list of explained variation by batch and condition combinations

Usage

batchqc_explained_variation(data.matrix, condition, batch)

Arguments

data.matrix
Given data or simulated data from rnaseq_sim()
condition
Condition covariate of interest
batch
Batch covariate

Value

List of explained variation by batch and condition

Examples

Run this code
nbatch <- 3
ncond <- 2
npercond <- 10
data.matrix <- rnaseq_sim(ngenes=50, nbatch=nbatch, ncond=ncond, npercond=
    npercond, basemean=10000, ggstep=50, bbstep=2000, ccstep=800, 
    basedisp=100, bdispstep=-10, swvar=1000, seed=1234)
batch <- rep(1:nbatch, each=ncond*npercond)
condition <- rep(rep(1:ncond, each=npercond), nbatch)
batchqc_explained_variation(data.matrix, condition, batch)

Run the code above in your browser using DataLab