tests/testthat/test_coordFormat.R

context("Gene Coordination Format")
library("GenomicRanges")

targetGRange <- GRanges(seqnames = Rle("chr2", 1),
                        ranges = IRanges(start=c(16e7), width=5000001),
                        strand = rep(("*"), 1))

test_that("coordFormat format is correct", {
  expect_equal(coordFormat("2:16e7:16.5e7"), targetGRange)
})
DPP4ResearchGroup/SyntenyViz documentation built on Nov. 19, 2023, 1:16 a.m.