export.igraph {GenomicInteractions} | R Documentation

## Export interactions to an igraph object.

### Description

Exports a GInteractions object to graph.data.frame for use by igraph package. This uses unique anchors as nodes and generates edges between them. For the resulting graph to be easily interpretable, anchors should be non-overlapping. This should already be the case for HiC data (either binned or restriction fragments), however ChIA-PET data can contain overlapping anchors, which may need to be reduced to non-overlapping regions before graph export.

### Usage

    export.igraph(GIObject)

    ## S4 method for signature 'GInteractions'
    export.igraph(GIObject)

### Arguments

`GIObject` | A GInteractions object.

### Value

a graph.data.frame representation of the GInteractions object

### Examples

    data(hic_example_data)
    ig <- export.igraph(hic_example_data)

[Package GenomicInteractions version 1.14.0 Index]