Skip to contents

export linkset to GInteractions

Usage

# S4 method for class 'linkSet'
as.GInteractions(x)

Arguments

x

A linkset object

Value

A GInteractions object

Examples

data(linkExample)
gi <- as.GInteractions(linkExample)
gi
#> GInteractions object with 5 interactions and 1 metadata column:
#>       seqnames1   ranges1     seqnames2   ranges2 | anchor1.symbol
#>           <Rle> <IRanges>         <Rle> <IRanges> |    <character>
#>   [1]      chr1      1-10 ---      chr1     50-59 |          Gene1
#>   [2]      chr1   100-109 ---      chr2   150-159 |          Gene1
#>   [3]      chr2   200-209 ---      chr2   250-259 |          Gene2
#>   [4]      chr3   300-309 ---      chr4   350-359 |          Gene3
#>   [5]      chr4   400-409 ---      chr4   450-459 |          Gene3
#>   -------
#>   regions: 10 ranges and 0 metadata columns
#>   seqinfo: 4 sequences from an unspecified genome; no seqlengths