tests/testthat/test-convertMASTClassic.R

context('Testing conversion from MASTClassic format')
test_that('Can convert', {
    old <- readRDS('SingleCellAssay-Object-MASTClassic.RData')
    newObj <- convertMASTClassicToSingleCellAssay(old)
    expect_is(newObj, 'SingleCellAssay')
    expect_equal(nrow(newObj), 10)
    expect_equal(ncol(newObj), 100)
})

Try the MAST package in your browser

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

MAST documentation built on Nov. 8, 2020, 8:19 p.m.