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 Aug. 2, 2024, 4:35 p.m.