si2gr: Create 'GRanges' from 'Seqinfo' or 'BSgenome'

View source: R/gUtils.R

si2grR Documentation

Create GRanges from Seqinfo or BSgenome

Description

Creates a genomic ranges from seqinfo object i.e. a pile of ranges spanning the genome

Usage

si2gr(si, strip.empty = FALSE)

Arguments

si

Seqinfo object or a BSgenome genome

strip.empty

boolean Flag to output non-zero GRanges only (default = FALSE)

Value

GRanges representing the range of the input genome

Examples


si2gr(hg_seqlengths())


mskilab/gUtils documentation built on June 6, 2023, 12:08 a.m.