annotateInteractions: Annotate interactions

Description Usage Arguments Details Value Examples

Description

This function will annotate the interactions in a GenomicInteractions object with node class information.

Usage

1
2
3
4
5
annotateInteractions(GIObject, annotations)

## S4 method for signature 'GenomicInteractions,list'
annotateInteractions(GIObject,
  annotations)

Arguments

GIObject

A GenomicInteractions object to be annotated.

annotations

A list containing GRanges (or GRangesList) objects to be used to annotate GIObject.

Details

For each interaction, this function identifies the entries of annotations that overlap an anchor region. For each entry in annotations, a metadata column is added to the GenomicInteractions object, containing a list that specifies the elements inside the entry that overlap each interaction. The metadata column is named as NAME.id where NAME is the name of the entry. Anonymous lists will be given names FEATURE#.id where # is the position in the list.

For each anchor, a node.class metadata column will also be added, containing the name of the list element which was first annotated to each range. Ranges with no overlaps will be classified as "distal". The identifiers for each individual feature/annotation are taken from either the name of the list item in the case of a GRangesList or from either the names of a the provided GRanges or an id column in its associated metadata.

Value

NULL is invisibly returned, while the value passed as GIObject is modified in the global namespace.

Examples

1
2
3
4
5
6
7
8

LTLA/fugi documentation built on June 22, 2019, 8:50 p.m.