tests/test_miRSM.R

library(testthat)
library(GSEABase)
library(miRSM)

# Load datasets
data(BRCASampleData)

# Identify gene co-expression modules using igraph method
modulegenes_igraph <- module_igraph(ceRExp[, seq_len(10)], 
    mRExp[, seq_len(10)])


test_that("Test miRSM", {
    expect_equal(geneIds(module_igraph(ceRExp[, seq_len(10)], 
        mRExp[, seq_len(10)])), geneIds(modulegenes_igraph))
})

Try the miRSM package in your browser

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

miRSM documentation built on April 16, 2021, 6 p.m.