go_analysis <- read.delim(system.file("extdata/example.txt", package="rrvgo"))
simMatrix <- calculateSimMatrix(go_analysis$ID, orgdb="org.Hs.eg.db", ont="BP", method="Rel")
test_that("calculateSimMatrix returns a squared matrix", {
expect_is(simMatrix, "matrix")
expect_equal(nrow(simMatrix), ncol(simMatrix))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.