R/GenomicRegionsChrNumber.R

##
## method GenomicRegionsChrNumber to extract number of chromosomes
##

##
## GenomicRegions - GenomicRegionsChrNumber
##

setMethod("GenomicRegionsChrNumber", "GenomicRegions", function(.Object) {
Chrs<-slot(.Object, "chr")
ChrNumber<-length(unique(Chrs))
return(ChrNumber)
})

Try the PREDA package in your browser

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

PREDA documentation built on Nov. 8, 2020, 7:40 p.m.