batchQC_condition_adjusted {BatchQC} | R Documentation

## Returns adjusted data after remove the variation across conditions

### Description

Returns adjusted data after remove the variation across conditions

### Usage

    batchQC_condition_adjusted(data.matrix, batch, condition)

### Arguments

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

### Value

Adjusted data after remove the variation across conditions

### Examples

    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_condition_adjusted(data.matrix, batch, condition)

[Package BatchQC version 1.6.1 Index]