inst/unitTests/test_qc.R

test_sex <- function() {
    ## stopifnot(require(minfiData))
    ## stopifnot(require(DelayedArray))
    ## data(MsetEx)

    ## # Original tests
    ## gmSet <- mapToGenome(MsetEx)
    ## gmSet <- addSex(gmSet)
    ## checkEquals(gmSet$sex, gmSet$predictedSex)

    ## # Testing with DelayedArray-backed objects
    ## MsetEx <- realize(MsetEx)
    ## gmSet <- mapToGenome(MsetEx)
    ## gmSet <- addSex(gmSet)
    ## checkEquals(gmSet$sex, gmSet$predictedSex)
    checkTrue(TRUE)
}

Try the minfi package in your browser

Any scripts or data that you put into this service are public.

minfi documentation built on Nov. 8, 2020, 4:53 p.m.