tests/testthat/test.fast.mean.filter.R

library(hicrep)
context("fast.mean.filter")

test_that("fast.mean.filter() returns a smoothed 
          matrix with same dim as the input matrix", {
    
    data("HiCR1")
    smt.mat = fast.mean.filter(HiCR1, h = 5)
  
    expect_is(smt.mat, "matrix")
    expect_equal(nrow(smt.mat), 52)
    expect_equal(ncol(smt.mat), 52)
})
qunhualilab/hicrep documentation built on Feb. 27, 2020, 9:17 p.m.