sif2graph | R Documentation |
This function receives as input a network in form sif format and converts it to graph format.
sif2graph(sif)
sif |
the name of a sif file or the equivalent table |
This function takes a network in sif format (tabel or file), i.e. sourceNode-tab-sign-tab-targetNode. If there are ANDs they should be introduced as dummy nodes called and# (don't forget the number after "and" otherwise this won't be recognised). Please be aware that "and" nodes are not expected to be negated, i.e. there are not supposed to be !and1=xyz because that amounts to inverting the sign of all inputs of and1, which is more simply done at the inputs level.
In the resulting graph, the sign of each link is encodes as the weigth of the edge (-1 negative regulation, +1 positive regulation).
g |
the corresponding graph |
F.Eduati
graph2sif, model2sif, readSIF,
data(ToyModel,package="CellNOptR")
sif_file = tempfile(fileext = ".sif")
writeSIF(model = ToyModel,filename = sif_file)
g = sif2graph(sif_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.