birewire.build.dsg {BiRewire} | R Documentation |
The routine transforms the initial dsg (two bipartite graphs) into SIF dsg format.
birewire.build.dsg(dsg,delimitators=list(negative='-',positive='+'))
dsg |
The dsg to be converted; |
delimitators |
list(negative='-',positive='+') (default):a list with 'positive' and 'negative' names identifying the character encoding the relation; |
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
.
A dsg in SIF format.
data(test_dsg) dsg=birewire.induced.bipartite(test_dsg) tmp= birewire.rewire.dsg(dsg,verbose=FALSE) dsg2=birewire.build.dsg(tmp)