tests/testthat/test-visualize.R

context("Visualize")

test_that("EAbarplot works", {
    Genelist <- c("FN1","COL1A1")
    ansEA <- TCGAanalyze_EAcomplete(TFname = "DEA genes Normal Vs Tumor",Genelist)
    TCGAvisualize_EAbarplot(
        tf = rownames(ansEA$ResBP),
        GOBPTab = ansEA$ResBP,
        GOCCTab = ansEA$ResCC,
        GOMFTab = ansEA$ResMF,
        PathTab = ansEA$ResPat,
        nRGTab = Genelist,
        nBar = 10,
        filename = "a.pdf")
    expect_true(file.exists("a.pdf"))
    unlink("a.pdf")
})

Try the TCGAbiolinks package in your browser

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

TCGAbiolinks documentation built on Nov. 8, 2020, 5:37 p.m.