powered by
split interactions by sep paramter,return edges data.frame
interaction_to_edges(df, a = 1, b = 2, sep = ",")
a new data.frame with two column ,one interaction by one rows
interactions data.frame
column to replicate
column to split
a character string to separate b column
Xiaojie Sun
edges_to_nodes
df = data.frame(a = c("gene1","gene2","gene3"), b = c("d,f,a,b", "c,e,g", "a,b,d")) interaction_to_edges(df)
Run the code above in your browser using DataLab