inst/unitTests/test_probesetPermutations.R

test_probesetPermutations <- function() {
    aberrantExonUsage(1.0, firmaAnalysis(useToyData=TRUE))
    perms <- probesetPermutations(firmaAnalysis(useToyData=TRUE), quantiles)
    checkEquals(sum(as.numeric(perms[[1]]))/100, ncol(readGeneSummaries(useToyData=TRUE)))
    checkEquals(sum(as.numeric(perms[[1]]))/100, sum(sapply(firmaAnalysis(useToyData=TRUE), is.numeric) == TRUE))
    checkEquals(sum(as.numeric(perms[[2]]))/100, ncol(readGeneSummaries(useToyData=TRUE)))
    checkEquals(sum(as.numeric(perms[[2]]))/100, sum(sapply(firmaAnalysis(useToyData=TRUE), is.numeric) == TRUE))
    checkTrue(sum(as.numeric(perms[[1]])) %% 100 == 0)
    checkTrue(sum(as.numeric(perms[[2]])) %% 100 == 0)
}

Try the TIN package in your browser

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

TIN documentation built on Nov. 8, 2020, 5:58 p.m.