Learn R Programming

aop (version 1.0.0)

convert_aop_to_graph: Convert AOP to Graph

Description

Converts an AOP (encoded as aop_cytoscape object) to a graphNEL object.

Usage

convert_aop_to_graph(aop)

Arguments

aop
an object of class aop_cytoscape.

Value

aop_graph a graphNEL object representation of the AOP

Details

This function converts an aop_cytoscape object to a graphNEL object. This allows us to perform graph-based analyses of the AOP.

Examples

Run this code
library(graph)
steatosis_json_file <- system.file("extdata", "steatosis_aop_json.cyjs",
package = "aop")
steatosis_aop <- convert_cytoscape_to_aop(steatosis_json_file)
steatosis_aop_graph <- convert_aop_to_graph(steatosis_aop)
plot(steatosis_aop_graph)

Run the code above in your browser using DataLab