graph2graphframe: Representation of BioPlex PPIs using a GraphFrames backend

View source: R/graphframes.R

graph2graphframeR Documentation

Representation of BioPlex PPIs using a GraphFrames backend

Description

Representation of BioPlex PPIs in a GraphFrame object from the graphframes package.

Usage

graph2graphframe(gr, spark.con)

Arguments

gr

an object of class graph storing the BioPlex PPIs. Typically obtained via bioplex2graph.

spark.con

Spark connection. Typically obtained via sparklyr::spark_connect.

Value

An object of class GraphFrame.

See Also

graphframe2graph

Examples


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) 


ccb-hms/BioPlexAnalysis documentation built on Jan. 29, 2023, 6:55 p.m.