Nothing
library(martini)
source("minimum_data.R")
test_that("we connect the consecutive SNPs", {
expect_true(igraph::are_adjacent(gs, "rs1", "rs2"))
expect_true(igraph::are_adjacent(gs, "rs2", "rs3"))
expect_false(igraph::are_adjacent(gs, "rs3", "rs4"))
})
test_that("we add genomic information to the vertices", {
expect_equal(igraph::get.vertex.attribute(gs, "chr", match(c("rs1", "rs2", "rs3"), igraph::V(gs)$name) ), rep(1, 3) )
expect_equal(igraph::get.vertex.attribute(gs, "chr", match(c("rs4", "rs5", "rs6"), igraph::V(gs)$name) ), rep(2, 3) )
expect_equal(igraph::get.vertex.attribute(gs, "pos", match(c("rs1", "rs2", "rs3"), igraph::V(gs)$name) ), c(10, 20, 30) )
expect_equal(igraph::get.vertex.attribute(gs, "pos", match(c("rs4", "rs5", "rs6"), igraph::V(gs)$name) ), c(15, 25, 35) )
})
test_that("edges have weights", {
expect_false(is.null(igraph::E(gs)$weight))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.