Nothing
library(trena)
library(RUnit)
#----------------------------------------------------------------------------------------------------
Sys.setlocale("LC_ALL", "C")
#----------------------------------------------------------------------------------------------------
printf <- function(...) print(noquote(sprintf(...)))
#----------------------------------------------------------------------------------------------------
runTests <- function()
{
test_basicUse()
} # runTests
#----------------------------------------------------------------------------------------------------
test_basicUse <- function()
{
printf("--- test_directMode")
require(org.Hs.eg.db)
# GO:0010467 gene expression
# GO:0097659 nucleic acid-templated transcription
# GO:0001172 transcription, RNA-templated
# GO:0006351 transcription, DNA-templated
goFilter <- GeneOntologyFilter(org.Hs.eg.db, GOTerm="GO:0006351")
candidates <- getCandidates(goFilter)
checkTrue(all(c("tbl", "tfs") %in% names(candidates)))
first.genes <- head(candidates$tfs, n=3)
# simple test: they should be sorted, and all start with "A"
#checkEquals(length(grep("^A", first.genes)), 3)
} # test_basicUse
#----------------------------------------------------------------------------------------------------
if(!interactive()) runTests()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.