coerceInBSgenome {CAGEr} | R Documentation

## coerceInBSgenome

### Description

A private (non-exported) function to discard any range that is not compatible with the CAGEr object's BSgenome.

### Usage

    coerceInBSgenome(gr, genome)

### Arguments

`gr` | The genomic ranges to coerce.
`genome` | The name of a BSgenome package, which must me installed, or `NULL` to skip coercion.

### Value

A GRanges object in which every range is guaranteed to be compatible with the given BSgenome object. The sequnames of the GRanges are also set accordingly to the BSgenome.

[Package CAGEr version 1.22.3 Index]