birewire.build.dsg {BiRewire}R Documentation

Transform a dsg object in a SIF file.

Description

The routine transforms the initial dsg (two bipartite graphs) into SIF dsg format.

Usage

birewire.build.dsg(dsg,delimitators=list(negative='-',positive='+'))

Arguments

dsg

The dsg to be converted;

delimitators

list(negative='-',positive='+') (default):a list with 'positive' and 'negative' names identifying the character encoding the relation;

Details

This fuction converts the dsg object into a SIF format that can be saved using birewire.write.dsg, an internal function, using the given delimitators for encoding the relations. It is the inverse function of birewire.induced.bipartite.

Value

A dsg in SIF format.

Examples


data(test_dsg)
dsg=birewire.induced.bipartite(test_dsg)
tmp= birewire.rewire.dsg(dsg,verbose=FALSE)
dsg2=birewire.build.dsg(tmp)


[Package BiRewire version 3.16.0 Index]