tests/testthat/test.smoothMat.R

library(hicrep)
context("smoothMat")

test_that("smoothMat() returns a squared matrix", {
  
    data(HiCR1)
    resol <- 1000000 
    ref_Rep1 <- HiCR1[,-c(1,2,3)]
    rownames(ref_Rep1) = colnames(ref_Rep1) = HiCR1[,3]-resol/2
    
    smt_HiC_R1 <- smoothMat(ref_Rep1, 1)
    
    expect_is(smt_HiC_R1, "matrix")
    expect_equal(ncol(smt_HiC_R1), nrow(smt_HiC_R1))
})

Try the hicrep package in your browser

Any scripts or data that you put into this service are public.

hicrep documentation built on April 28, 2020, 7:51 p.m.