inst/unitTests/test_convertToTxFeatures.R

test_convertToTxFeatures <- function()
{
  
    gr <- GRanges(1, IRanges(c(1, 201), c(100, 300)), "+")
    grl <- split(gr, 1)
    current <- convertToTxFeatures(grl)
    target <- TxFeatures(GRanges(1, IRanges(c(1, 100, 201), c(100, 201, 300)),
      "+", type = c("F", "J", "L")), txName = CharacterList(1, 1, 1))
    checkIdentical(target, current)
    
}

Try the SGSeq package in your browser

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

SGSeq documentation built on Nov. 8, 2020, 8:31 p.m.