controlForConfounders: Autoencoder function to correct for confounders.

Description Usage Arguments Value Examples

View source: R/controlForConfounders.R

Description

This is the wrapper function for the autoencoder implementation. It can be used to call the standard R implementation or the experimental Python implementation.

Usage

1
2
3
4
5
6
7
controlForConfounders(
  ods,
  q,
  implementation = c("autoencoder", "pca"),
  BPPARAM = bpparam(),
  ...
)

Arguments

ods

An OutriderDataSet object

q

The encoding dimensions

implementation

"autoencoder", the default, will use the autoencoder implementation. Also 'pca' and 'peer' can be used to control for confounding effects

BPPARAM

A BiocParallelParam instance to be used for parallel computing.

...

Further arguments passed on to the specific implementation method.

Value

An ods object including the control factors

Examples

1
2
3
4
5
6
7
8
ods <- makeExampleOutriderDataSet()
implementation <- 'autoencoder'

ods <- estimateSizeFactors(ods)
ods <- controlForConfounders(ods, implementation=implementation)

plotCountCorHeatmap(ods, normalized=FALSE)
plotCountCorHeatmap(ods, normalized=TRUE)

OUTRIDER documentation built on Nov. 8, 2020, 5:16 p.m.