tests/testthat/test-plotMitoRatio.R

## Current example doesn't contain mito genes, so fake this.

test_that("SingleCellExperiment", {
    object <- calculateMetrics(sce)
    colData(object)[["mitoRatio"]] <-
        rnorm(n = ncol(object), mean = 0.1, sd = 0.01)
    p <- plotMitoRatio(object)
    expect_s3_class(p, "ggplot")
})
acidgenomics/minimalism documentation built on April 1, 2024, 10:34 a.m.