grAddColumn: Add a data column to a GRanges object.

Description Usage Arguments Value

Description

Adds a vector as a column in a GRanges object, assuming the data is in the correct order. This data can be anything describing the range elements, for instance a vector of colors. This is essentially a convienience wrapper around the elementMetadata() function from the GRanges package.

Usage

1
grAddColumn(gr, name, vec)

Arguments

gr

The granges object to add to add a column to.

name

The name of the column when added

vec

The data. If not the same length as the GRanges object, will attempt to wrap values. If not an even multiple, will error.

Value

The granges object, with the appended column.


jefferys/fusionExpressionPlot documentation built on May 19, 2019, 3:59 a.m.