tests/testthat/test_bedToGRangesList.R

context("test-bedToGRangesList")

test_that("Whether bedToGRangesList gives us the same output", {

    path = system.file("extdata", package = "preciseTAD")

    tfbsList <- bedToGRangesList(filepath=path, bedList=NULL, bedNames=NULL,
                                 pattern = "*.bed", signal=4)

    expect_equal(length(tfbsList[[1]]), 1841)

    expect_equal(length(tfbsList[[2]]), 2077)

})
stilianoudakis/preciseTAD documentation built on Sept. 23, 2021, 9:36 p.m.