From Optflux
Jump to: navigation, search


There are some actions that can be performed to edit the layouts loaded in OptFlux.

Dragging Fix/Unfix[edit]

The visualization uses a default algorithm for placing the nodes in the layouts. This algorithm (Force Directed Layout -http://en.wikipedia.org/wiki/Force-directed_graph_drawing) was changed to support fixed nodes. This means that a layout created by the user can only specify some positions of the nodes, while the others will be placed by the algorithm.

FixUnfix.png
By right-clicking a node the user can specify if that node will be fixed to the position it is, or by unfixing if the layout algorithm will place it. It is also possible to fix and unfix nodes by type.

DRAG.png
When the nodes are fixed, the user can also drag them to other positions. If multiple nodes are selected, then all fixed nodes withing the selected area will be dragged.

Merge/Replicate Metabolite Node[edit]

MergeReplicate.png

Merging or replicating nodes allows the user to specify if that chemical entity will be represented by more than one node or not.

By looking at the image above it is possible to see such an example:

1 When a metabolite node is connected by several reactions, if the user right-clicks over a note, the right-click menu will show the option Replicate Node</>;

2 The replication will result in a node representing the same metabolite for each of the reactions;

3 The option changes from <i>Replicate Node to Merge Node when the node is connected with a single reaction.

4 When the option is chosen a green edge will follow the mouse cursor. It is only possible to merge nodes that represent the same metabolite!

5 The result is a single node replacing the merged ones.

Merge/Replicate Reaction Node[edit]

Similarly to the metabolite nodes, it is possible to merge and replicate reaction nodes.

C4 replicatemergerReaction.png

Two reaction nodes can be merged if they are connected with the exact same nodes and have the same reversibility! Such an example is the image above where A is the merged reaction node and B the replicated node.

Delete Reaction[edit]

Remove reaction2.png

It is possible to remove a reaction node by right-clicking on it, and selection the option showed in the image above. This will result in the removal of the reaction node, and removal of the nodes that were only connected to this specific reaction.