R/size-methods.R

# the size of a genome interval is in terms of its bases, i.e. computed on integers 'Z'
# inter_base intervals have size 0

setMethod(
        "size",
        signature( "Genome_intervals" ),
        function( x ) {
            rv <- callNextMethod(x)
            rv[ inter_base(x) ] <- 0 
            rv
        }
)

Try the genomeIntervals package in your browser

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

genomeIntervals documentation built on Nov. 8, 2020, 4:56 p.m.