graph2graphframe | R Documentation |
Representation of BioPlex PPIs in a GraphFrame
object
from the graphframes
package.
graph2graphframe(gr, spark.con)
gr |
an object of class |
spark.con |
Spark connection. Typically obtained via
|
An object of class GraphFrame
.
graphframe2graph
library(sparklyr) library(graphframes) library(BioPlex) # (1) Obtain the latest version of the 293T PPI network bp.293t <- getBioPlex(cell.line = "293T", version = "3.0") # (2) Turn the data into a graph bp.gr <- bioplex2graph(bp.293t) # (3) Switch to a graphframes backend sc <- spark_connect(master = "local", version = "3.0") bp.gf <- graph2graphframe(bp.gr, sc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.