Skip to contents

In order to be used by ingres, GraphML files have to be converted to tidygraph format. This helper does that.

Usage

graphmlAsTidy(filename)

Arguments

filename

The path to the the GraphML file.

Value

A tidygraph object

Examples

filename <-
  system.file("extdata", "example_network.graphml", package = "ingres")
graphmlAsTidy(filename)
#> # A tbl_graph: 30 nodes and 110 edges
#> #
#> # A directed multigraph with 1 component
#> #
#> # Node Data: 30 × 3 (active)
#>   kind  rule                              id              
#>   <chr> <chr>                             <chr>           
#> 1 input ""                                DNAdamage       
#> 2 input ""                                GrowthInhibitors
#> 3 fate  "CyclinE1 or CyclinA"             Proliferation   
#> 4 fate  "E2F1_2 or TP53"                  Apoptosis       
#> 5 fate  "p21CIP or RB1 or RBL2"           Growth_Arrest   
#> 6 gene  "SPRY and not FGFR3 and not GRB2" EGFR            
#> # … with 24 more rows
#> #
#> # Edge Data: 110 × 3
#>    from    to sign    
#>   <int> <int> <chr>   
#> 1     8    30 positive
#> 2    14     3 positive
#> 3    15     3 positive
#> # … with 107 more rows