tests/testthat/test_SpatialExperiment-assays.R

example(SpatialExperiment, echo = FALSE)

test_that("molecules()/<- gets/sets assay(., 'molecules')", {
    tmp <- spe
    expect_identical(
        molecules(tmp) <- assay(spe),
        assay(tmp, "molecules") <- assay(spe))
    expect_identical(
        assayNames(tmp), 
        c(assayNames(spe), "molecules"))
})
drighelli/VisiumExperiment documentation built on June 30, 2024, 10:55 a.m.