read.bedix: Retrieve a subset of an indexed BED file

Description Usage Arguments Value Author(s)

View source: R/read.bedix.R

Description

Using Rsamtools functions to manipulate tabix file, the indexed BED file is read and the features present in the selected region are retrieved.

Usage

1
read.bedix(file, subset.reg = NULL, header = TRUE)

Arguments

file

a BED file containing the data to be read. It should be compressed with bgzip and indexed by tabix algorithm.

subset.reg

a data.frame or GRanges object with the regions to subset from. If a data.frame, it must have columns named 'chr', 'start' and 'end'.

header

should the first line of file be used as header. Default is TRUE.

Value

a data.frame with the retrieved BED information.

Author(s)

Jean Monlong, Diego Garrido-Martín


guigolab/sQTLseekeR2 documentation built on Nov. 20, 2021, 3:21 a.m.