pickOne: Pick one GRange from many in a list

Description Usage Arguments Value Examples

View source: R/conversion.R

Description

Function to pick a single GRanges object per many in a given GRangeslist If none map, then a return a "chrZ" seqname is returned.

Usage

1
pickOne(grl, returnBooVec = FALSE)

Arguments

grl

A GRangeslist object to be picked on

returnBooVec

If true, returns an S3 object where the first element is the flattened GRanges object and the second is a boolean vector indicating whether the region was successfully mapped or not.

Value

A flattened GRanges object of the same length

Examples

1
2
3
from <- paste0(system.file('extdata',package='easyLift'),'/exbed/hg19.quick.bed')
#easyLiftOver(sf, map = "hg19_hg38") # spits out the lifted over bed file
liftedGRanges <- easyLiftOver(from, map = "hg19_hg38", pickOne = TRUE)

caleblareau/easyLift documentation built on May 21, 2019, 2:21 p.m.