inst/unitTests/test_filterTrack.R

test_filterTrack <- function() {
    folder=system.file("extdata","SWR1",package="sojourner")
    trackll=createTrackll(folder=folder, input=3)
    trackll.flt=filterTrack(trackll,filter=c(min=5,max=Inf))
    RUnit::checkTrue(lapply(trackLength(trackll),min)==2)
    RUnit::checkTrue(lapply(trackLength(trackll.flt),min)==5)
    RUnit::checkTrue(lapply(trackLength(trackll.flt),max)==30)
    RUnit::checkTrue(length(trackll.flt[[1]])==70)
}

Try the sojourner package in your browser

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

sojourner documentation built on March 29, 2021, 6 p.m.