has.covariates.sva: has.covariates.sva

Description Usage Arguments Value Author(s) Examples

View source: R/sva.R

Description

Returns whether Surrogate Variables have been computed and added to the rnb.set for a given target variable

Usage

1
has.covariates.sva(rnb.set, target)

Arguments

rnb.set

RnBSet object

target

target variable. Must be in pheno(rnb.set) and belong to target variables for which the SVs have already been computed and stored in the RnBSet.

Value

logical(1)

Author(s)

Fabian Mueller

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(RnBeads.hg19)
data(small.example.object)
logger.start(fname=NA)
sva.obj <- rnb.execute.sva(rnb.set.example,c("Sample_Group","Treatment"),numSVmethod="be")
sva.obj$sva.performed
sva.obj$num.components
rnb.set.mod <- set.covariates.sva(rnb.set.example, sva.obj)
has.covariates.sva(rnb.set.example,"Sample_Group")
has.covariates.sva(rnb.set.mod,"Sample_Group")
has.covariates.sva(rnb.set.mod,"Treatment")

RnBeads documentation built on March 3, 2021, 2 a.m.