regressConfoundingFactors: regressConfoundingFactors

Description Usage Arguments Value Examples

View source: R/ascend_confoundingfactors.R

Description

This function generates a scaled regression matrix based on candidate genes supplied by the user. This function should be used after normalisation.

Usage

1
regressConfoundingFactors(object, candidate.genes = c())

Arguments

object

An EMSet that has been normalised.

candidate.genes

A list of genes you wish to regress from the dataset. Refer to the vignette on how to choose genes for regression.

Value

An EMSet with confounding factors regressed from the expression values.

Examples

1
2
3
4
5
6
7
# Load example EMSet
em_set <- ascend::analyzed_set

# Define genes to regress
genes <- c("CDK4","CCND1")

regressedSet <- regressConfoundingFactors(em_set, candidate.genes = genes)

IMB-Computational-Genomics-Lab/ascend documentation built on Aug. 29, 2019, 4:10 a.m.