The goal for this function is to eliminate the need to lug around large packages when we only want seqlengths for things.
Arguments
- genome.gr
A GRanges object of the genome (from
getGenome()
)- chr
What chromosome to extract the seqlengths of
Examples
hg19.chr14.seqlengths <- getSeqLengths(getGenome('hg19'), chr = "chr14")