coerceInBSgenome: coerceInBSgenome

Description Usage Arguments Value

View source: R/ImportMethods.R

Description

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

Usage

1
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.


CAGEr documentation built on Jan. 17, 2021, 2 a.m.