annotateRegions: Annotate regions

Description Usage Arguments Value Examples

Description

Use this function to add metadata parallel to the 'regions' slot of a GenomicInteractions or GInteractions object.

Usage

1
2
3
4
annotateRegions(GIObject, name, dat)

## S4 method for signature 'GInteractions,character,vector'
annotateRegions(GIObject, name, dat)

Arguments

GIObject

A GenomicInteractions or GInteractions object

name

Character. Will be used as a column name.

dat

Vector of the same length as the GInteractions object, containing data with which to annotate the object.

Value

invisible(1)

Examples

1
2
3
data(hic_example_data)
chip <- runif(n = length(regions(hic_example_data)), max = 1000)
annotateRegions(hic_example_data, 'chip', chip)

GenomicInteractions documentation built on Nov. 8, 2020, 8:19 p.m.