# Input
liana_path <- system.file(package = "liana")
seurat_object <-
readRDS(file.path(liana_path , "testdata", "input", "testdata.rds"))
# Test
test_that("Test Connectome", {
if(!exists("test_external")){
skip("Not testing externals")
} else{
if(!test_external) skip("Not testing externals")
}
skip_on_ci()
exp1 <- readRDS(file.path(liana_path, "testdata",
"output", "conn_res.RDS"))
res1 <- call_connectome(
sce = seurat_object,
op_resource = select_resource("OmniPath")[[1]], # Default = No sig hits
.spatial = FALSE,
min.cells.per.ident = 1,
p.values = TRUE,
calculate.DOR = FALSE,
assay = 'RNA',
.format = TRUE
)
expect_equal(exp1, res1)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.