addGRanges: Add GenomicRanges

addGRangesR Documentation

Add GenomicRanges

Description

Add a GenomicRanges dataset to OGREDataSet

Usage

addGRanges(OGREDataSet, dataSet, type, label = NULL)

Arguments

OGREDataSet

An OGREDataSet

dataSet

A GRanges object. Each region needs chromosome, start, end and strand information. A unique ID and a name column must be present in the GenomicRanges object metadata. Avoid different chromosome naming conventions i.e. (chr1, CHR1, 1, I) among all datasets

type

Type of dataSet, must be either query or subject. If query the dataSet will be added as query and at the first position of OGREDataSet.

label

A character that will label your GRanges object. If not supplied, the label will be guessed from the dataset parameter.

Value

OGREDataSet.

Examples

myOGRE <- OGREDataSet()
myGRanges <- makeExampleGRanges()
myOGRE <- addGRanges(myOGRE,myGRanges,"query")

svenbioinf/OGRE documentation built on Jan. 30, 2023, 10:55 p.m.