Skip to contents

coerce linkSet to DataFrame

Usage

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

Arguments

x

A linkSet object

Value

A DataFrame object

Examples

# Create a linkSet object
data(linkExample)
# Convert linkSet to DataFrame
df <- as.data.frame(linkExample)
print(df)
#>    bait    bait_region      oe_region anchor1.symbol
#> 1 Gene1    chr1:1-10:+   chr1:50-59:+          Gene1
#> 2 Gene1 chr1:100-109:+ chr2:150-159:+          Gene1
#> 3 Gene2 chr2:200-209:+ chr2:250-259:+          Gene2
#> 4 Gene3 chr3:300-309:+ chr4:350-359:+          Gene3
#> 5 Gene3 chr4:400-409:+ chr4:450-459:+          Gene3