Learn R Programming

ingres (version 1.0.0)

ginmlToGraphml: 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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab