interaction_to_edges {tinyarray}R Documentation

interaction_to_edges

Description

split interactions by sep paramter,return edges data.frame

Usage

interaction_to_edges(df, a = 1, b = 2, sep = ",")

Arguments

df

interactions data.frame

a

column to replicate

b

column to split

sep

a character string to separate b column

Value

a new data.frame with two column ,one interaction by one rows

Author(s)

Xiaojie Sun

See Also

edges_to_nodes

Examples

df = data.frame(a = c("gene1","gene2","gene3"),
b = c("d,f,a,b",
"c,e,g",
"a,b,d"))
interaction_to_edges(df)

[Package tinyarray version 2.4.2 Index]