tests/testthat/test_matrix_transformations.R

test_that('matrix transformations work', {
  library(HiCdiff)
  data('HMEC.chr22')
  original = as.data.table(HMEC.chr22)
  full = sparse2full(HMEC.chr22)
  sparse = full2sparse(full)
  expect_equal(original, sparse)
})
dozmorovlab/HiCdiff documentation built on May 20, 2019, 11:13 a.m.