has.covariates.sva {RnBeads} | R Documentation |
Returns whether Surrogate Variables have been computed and added to the rnb.set
for a given target variable
has.covariates.sva(rnb.set, target)
rnb.set |
|
target |
target variable. Must be in |
logical(1)
Fabian Mueller
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")