export_to_sif: Export to sif

View source: R/GeneTonic-extras.R

export_to_sifR Documentation

Export to sif

Description

Export a graph to a Simple Interaction Format file

Usage

export_to_sif(g, sif_file = "", edge_label = "relates_to")

Arguments

g

An igraph object

sif_file

Character string, the path to the file where to save the exported graph as .sif file

edge_label

Character string, defining the name of the interaction type. Defaults here to "relates_to"

Value

Returns the path to the exported file, invisibly

Examples

library("igraph")
g <- make_full_graph(5) %du% make_full_graph(5) %du% make_full_graph(5)
g <- add_edges(g, c(1, 6, 1, 11, 6, 11))
export_to_sif(g, tempfile())

federicomarini/GeneTonic documentation built on Oct. 10, 2024, 8:49 p.m.