get_seqLen {InPAS} | R Documentation |
Get sequence lengths for chromosomes/scaffolds from a BSgenome::BSgenome object
get_seqLen(genome, removeScaffolds = FALSE)
genome |
An object of BSgenome::BSgenome |
removeScaffolds |
A logical(1) vector, whether the scaffolds should be
removed from the genome. If you use a TxDb containing alternative
scaffolds, you'd better to remove the scaffolds. To make things easy, we
suggest users creating a BSgenome::BSgenome instance from the
reference genome used for read alignment. For details, see the
documentation of |
A named numeric vector containing lengths per seqname, with the seqnames as the names
Jianhong Ou, Haibo Liu
library(BSgenome.Mmusculus.UCSC.mm10) genome <- BSgenome.Mmusculus.UCSC.mm10 InPAS:::get_seqLen(genome, removeScaffolds = FALSE)