tests/testthat/test-mergeColData.R

library(singleCellTK)
context("Testing mergeSCColData")

data(scExample, package = "singleCellTK")

sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")

colData(sce)$column_name = rownames(colData(sce))
test_that(desc = "Testing mergeSCEColData", {
    sce2 <- sce
    colData(sce2)$test <- 0

    #test again
    mergedsce <- mergeSCEColData(sce, sce2)

    expect_equal(ncol(colData(sce)) + 1, ncol(colData(mergedsce)))
})

Try the singleCellTK package in your browser

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

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.