conversions: IndexedRelation conversions

Description Details Author(s) Examples

Description

Convert an IndexedRelations object to and from different Bioconductor classes.

Details

A number of coerce methods are available to convert to/from an IndexedRelations object:

In addition, makePairsFromIndexedRelations(x) will create a Pairs instance from an IndexedRelations x. This requires that x only has two partners in each relationship, otherwise an error is thrown.

Author(s)

Aaron Lun

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
p <- Pairs(1:10, Rle(1L, 10), score=rnorm(10), names=letters[1:10])

ir <- as(p, "IndexedRelations")
ir

back <- makePairsFromIndexedRelations(ir)
back

df <- as(ir, "DataFrame")
df

as(df, "IndexedRelations")

LTLA/IndexedRelations documentation built on June 2, 2019, 10:03 p.m.