context("Testing sliding density method")
signature = read.table(file=file.path("test_files", "sample_signature.txt"),
sep="\t", header=TRUE)
signature = as.matrix(signature)
signature = filter_signature(signature)
test_that("dimension of output is correct", {
expect_equal(length(sliding_density(signature, bar=FALSE)), nrow(signature))
expect_equal(names(sliding_density(signature, bar=FALSE)), rownames(signature))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.