R/TssData-class.R

## class 'TssData' ##
setClass("TssData",
         representation(reads="list",
                        segments="data.frame",
                        parameters="list",
                        annotation="ANY")
         )

setValidity("TssData",
            function(object) {
              res <- TRUE
              if(!all.equal(length(object@reads), nrow(object@segments))) {
                res <- "Number of segments inconsistent."
              }
              return(res)
            })

Try the TSSi package in your browser

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

TSSi documentation built on May 6, 2019, 2:40 a.m.