ginmlToGraphml: Convert a GinSim file into a GraphML file GinSim files have...

View source: R/netwokHelpers.R

ginmlToGraphmlR Documentation

Convert a GinSim file into a GraphML file GinSim files have the extension .zginml. This utility function converts such files into the GraphML format. keeping the kind - fate, input or gene -, the edge sign and the rule - formulae - data.

Description

Convert a GinSim file into a GraphML file GinSim files have the extension .zginml. This utility function converts such files into the GraphML format. keeping the kind - fate, input or gene -, the edge sign and the rule - formulae - data.

Usage

ginmlToGraphml(ginzipFile, fates = c(), dest = NULL)

Arguments

ginzipFile

The path to the .zginml file. The GraphML file will be created in the same directory.

fates

A vector of fate names. If left empty, both fate and gene nodes will be labelled as kind='gene'

dest

The path to the graphml file that will be created. If NULL, defaults to the same path as the zginml file, but with the graphml extension.

Value

A vector with the lines of the newly created GraphML file.

Examples

filename =
  system.file("extdata", "example_ginsim.zginml", package = "ingres")
head(ginmlToGraphml(filename))


ingres documentation built on Sept. 14, 2022, 9:05 a.m.