?GRanges mentions the accessor function
seqlengths(). Trying to use it seems to be throwing an error about that not being exported. Hmm...looks like I am overlooking something. But what? :-)
granges <- GenomicRanges::GRanges( seqnames = 'chr1', ranges = IRanges::IRanges(start = 100, end = 200), strand = '-', seqlengths = c(chr1 = 1000)) GenomicRanges::seqlengths(granges) Error: 'seqlengths' is not an exported object from 'namespace:GenomicRanges'