coerceInBSgenome: coerceInBSgenome

View source: R/ImportMethods.R

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


charles-plessy/CAGEr documentation built on Oct. 27, 2024, 10:11 p.m.