Tutorial

A brief guide to help you use and understand version 1.

Once you have completed all applicable steps in Quick Start run the application and wait for it to open. The main window will pop up and look like the following:

_images/S1.png

(Figure 1)

2. Applicaions Menu

A lot of the functionalities found here are also in the Navigation Bar. However, they are organized according to their different uses, allowing you to access them in a more structured way.

- Main: We find Undo, Redo, Zoom in, and Zoom out.

- Analysis: We find Structural analysis, a function used is to calculate and visualize the stoichiometry matrix and conserved moieties for the network. When the user clicks on the “Compute Conservation Laws” button, the plugin will derive the stoichiometry matrix for the current network on canvas. It also computes any conserved moieties for the network. By selecting the moieties in the plugin, it can highlight the nodes on the network by changing their colors according to the user’s preference. Finally, unhighlighting the nodes is also possible by clicking the “Clear” button.

- Appearance: We have Arrow Designer. This allows you to personalize the arrows that appear in the reactions. A window will pop up where you will be able to move the circles to your desired visual. This will be implemented when you click Save. To restore the default arrow you may click arrow designer once again and click Restore Default.

- Utilities: Here you will find Add Reaction, Random Network, and Autolayout.

  • Add Reaction: This allows you to add reactions choosing the type in a quick way. First you want to select all the nodes that you want as reactants and then select them as reactant on the panel on the left, then select your desired products, and again, click products on the left. Finally, you want to click the Add Reaction utility and simply choose which type of reaction you want these sets of products and reactants to form.

  • Random Network: This utility lets you create a completely random network with personalized parameters. NOTE: This will erase your current canvas, not add to it. If you want to save your work you can do so under File in the Navigation Bar. After You create the random network you will be able to modify it at your own will, including adding and deleting nodes. To customize the parameters:

_images/S5.png

(Figure 5)

  • Number of species: The number of nodes that you want featured in your network.

  • Number of reactions: The number of reactions you want to create from the given species.

  • Probabilities: The probability of each type of reaction being featured. These must add to 1.

  • Random Seed: The randomizing seed for the code. This is a setting you won’t need to worry about too much unless you purposely want a lot of different random networks with the same features.

  • Auto Layout: This utility automatically gives you a “nice” layout of your network. NOTE: This has not been implemented for multiple compartments, and doesn’t behave well for complex reactions. This is under work, and will be cleaned by version 2. The parameters:

_images/S6.png

(Figure 6)

  • Maximum number of iterations: This will help make the layout more neat. 100-120 is a good default value range. If you have a very high number of nodes then you’re going to want to increase this number. Computationally, it may take a bit longer when this number is increased by a lot.

  • K: must be a float (no decimals allowed). This represents (in a way) the distance between nodes. If the number of nodes isn’t very large this number won’t have a big impact. Anything between 60-100 is a reasonable default.

  • Scale of the layout: This will modify the extension that the layout will cover. Again, this will not affect the layout too much if it is very large or very small. 500-1000 is a reasonable range.

3. Creation Panel

This panel allows you to select and create nodes and reactions. This is the basic command center for building your networks.

  • The select button allows you to choose nodes that are already in the canvas.

  • Selecting +Nodes will let you click anywhere on the canvas where you want a node to be. These nodes are movable.

  • +Compt will allow you to create compartments in which you can add nodes and reactions.

  • Zoom lets you zoom in and out.

  • Reactants will denote the selected nodes as reactants. To create a reaction with multiple reactants, click Select and maintain Ctrl in your keyboard pressed to select multiple.

  • Products will denote the selected nodes as products. To create a reaction with multiple products, click Select and maintain Ctrl in your keyboard pressed to select multiple.

  • Create Rxn will let you create reactions AFTER you have selected one or more nodes as reactants and one or more nodes as products. You can move the centers of the reaction to look as you desire.

Note: you will note be able to delete a node that is in a reaction.

4. Canvas

This is your visual workspace. Here you will be able to see your created nodes, compartments and reactions. You can move freely through the canvas as well as move nodes and reactions at your will.

You can right click on a node or on a selection of nodes to delete the selection. You also have an align option: This will let you align a set or nodes in the manners described.

_images/S7.png

(Figure 7)

  • Align Left will align all of your nodes vertically to be at the level of the left-most node in the selection.

  • Align Right will align all of your nodes vertically to be at the level of the right-most node in the selection.

  • Align center will align all of your nodes vertically to be at the level of the center (horizontally - x value) of all of the nodes in the selection.

  • Align Top will align all of your nodes vertically to be at the level of the top node in the selection.

  • Align Bottom will align all of your nodes vertically to be at the level of the bottom node in the selection.

  • Align Middle will align all of your nodes vertically to be at the level of the center (vertically - y value) of all of the nodes in the selection.

  • Grid will create a grid view of all the nodes by rows.

  • Arrange Horizontally will arrange all nodes so that they are evenly spaced out horizontally along the x position of the center of all the nodes.

  • Arrange Vertically will arrange all nodes so that they are evenly spaced out vertically along the y position of the center of all the nodes.

5. Information Panel

This is key to personalizing your nodes and reactions. Through this panel you will be able to add information to and about your networks. NOTE: The information panel will only show when something is selected (nodes, reactions, or compartments).

_images/S8.png

(Figure 8)

You will modify independently the reactions selected and the nodes selected.

- Nodes: Let’s go over the case where you select a single node. You can adjust settings for multiple nodes at once but some of the features are locked, like identifier, to avoid internal conflict.

_images/S9.png

(Figure 9)

  • Identifiers: This allows you to change the name of the node in question. E.g. say we want to name it H, we type H into the box.

  • Position: this helps you select exactly what canvas coordinate you want the node to be in. Note: the top left corner is the position (0,0).

  • Size: This lets you modify the node’s size, it is coherent with the canvas coordinate system.

  • Fill color, fill opacity, border color, border opacity, border width: You can customize these values to your own taste. Note: if you want to change all of the nodes to a specific color you can select all and modify accordingly, you don’t need to go one by one.

  • Node status: lets you identify a node as floating or border. This comes with a double border, to help you identify this type of node at a glance.

  • Lock node: when this box is clicked, it indicates that the node is not to be moved. The program will not let you (or other utilities) drag or move this node. You will see a circle appear at the top left of your node to help you identify locked nodes at a glance.

Here is an example of some of the values being changed and the end result (in contrast to the default values).

_images/S10.png

(Figure 10)

- Reactions: Each case will be very unique, let’s go over a simple scenario.

_images/S11.png

(Figure 11)

  • Identifier: the reaction’s name.

  • Rate law: you can specify if any applies. I left this empty since it is irrelevant to our simple example.

  • Fill color, fill opacity, line width: the color and appearance of the curve of the reaction. I chose red, the default is light blue. You won’t be able to see the change until you have stopped selecting. If you choose an opacity of 0 you will not be able to see the reaction.

  • Auto Center position: if checked, it will automatically move the center circle to its default position. If not clicked you may move it manually or assign it a coordinate position.

  • Reaction status: Straight line will make your reaction have simple straight lines, whereas bezier curve will calculate and draw the modifiable bezier curve. On the canvas you can move the handles around to get the exact visuals that you like.

  • Modifier tip: you can have the modifier’s tip to be circle or flat.

  • Modifiers: this lets you select which of all of the existing nodes in the canvas, in our out of the reaction, to be modifiers of the reaction you are modifying. They will be represented by a fine lilac line with the chosen tip. They will automatically move when the reactions or nodes involved are moved.

  • Reactants and products lets you state how many of each you have. It is also a good overview of the reaction when it gets complicated.

6. Zoom Control

You can visualize the location of your nodes on the little square, and scroll through the bar to zoom in or out.