Differences between revisions 10 and 13 (spanning 3 versions)
Revision 10 as of 2007-01-29 08:44:33
Size: 4864
Editor: cosiapat1
Comment:
Revision 13 as of 2007-01-29 09:20:07
Size: 5152
Editor: cosiapat1
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
Using Cytoscape's Editor and the ''Bio''''''Chemical''''''Reaction'' visual style, you can build and modify ''reactions'' by dragging and dropping shapes from the editor palette onto the main network view window. You can add ''products'', ''substrates'', and ''mediators'', to a ''reaction''.

The figure below shows the Editor palette for the ''Bio''''''Chemical''''''Reaction'' visual style and the result of dragging/dropping the ''Add''''''Reaction'' shape from the palette onto the canvas.



attachment:hyperEdgeEditor.png

The ''Add''''''Reaction'' palette shape serves as a template that enables you to add a connected set of nodes and edges to a network. You can change the names of the ''substrates'', ''products'', and ''mediators'' by editing them in Cytoscape's Attribute Browser.

You can connect additional ''products'', ''substrates'', and ''products'' to a ''reaction'' by dragging their associated shapes from the palette and dropping them on the ''reaction's'' ''connector'' node. An example of a ''reaction'' with two ''products'' is shown in the figure below.

attachment:hyperedge_two_products.png

An example of a ''reaction'' with two ''products'' and two ''substrates'' is shown in the figure below.

attachment:hyperedge_two_products_two_substrates.png
Line 22: Line 39:

Using Cytoscape's Editor, you can build and modify networks interactively by dragging and dropping nodes and edges from a palette onto the main network view window. The palette contains a set of shapes (for nodes) and arrows (for edges). The shapes on the palette are defined by the current Visual Style, with Node Shape and Node Color mapping into the shape and color of a node, and Edge Target Arrow mapping into the target arrow of an edge. An example of an editor, with the palette contained in CytoPanel 1, is shown below.

attachment:hyperEdgeEditor.png

To edit an existing network, just select the Editor tab in CytoPanel 1. To start editing a new network, use the __File → New → Network → Empty Network__ menu item.

The figure below shows the editor with palette defined by "Default" visual style.

attachment:hyperedge_two_products.png

To add a node to a network, drag and drop a node shape from the palette onto the canvaos.

attachment:hyperedge_two_products_two_substrates.png

/!\ This page is Under Construction. Please do not modify.

A Cytoscape Edge typically connects two Nodes, which we commonly refer to as Source and Target Nodes. While this is sufficient for most cases, there are cases where you may want to have Edges that connect more than two Nodes. One example of this is a Biochemical Reaction, where an Edge represents a reaction that may have multiple substrates, products, and mediators. An example of this is shown in the figure below,

attachment:biochemcial_reaction_eg.png

where L-glutamine and 2-oxoglutarate are substrates for the reaction, the catalyst glutamate substrate is a mediator for the reaction, 2 L-glutamate is a product of the reaction, the co-factor NADPH is a substrate for the reaction, and the co-factor NADP is a product of the reaction.

There may also be cases in which you may want to connect one edge with another edge, for example to represent the activity of a molecular species that modulates the action of a catalyst. This is illustrated in the figure below

attachment:edge_connect_edge.png

where molecular species S_643 inhibits the action of catalyst M_643.

If you look closely at these two figures, you will see some small squares at the intersections of the edges. In Cytoscape, we refer to this small square as a connector node. We also refer to the collection of edges and connector node as a hyperedge.

Using Cytoscape's Editor and the BioChemicalReaction visual style, you can build and modify reactions by dragging and dropping shapes from the editor palette onto the main network view window. You can add products, substrates, and mediators, to a reaction.

The figure below shows the Editor palette for the BioChemicalReaction visual style and the result of dragging/dropping the AddReaction shape from the palette onto the canvas.

attachment:hyperEdgeEditor.png

The AddReaction palette shape serves as a template that enables you to add a connected set of nodes and edges to a network. You can change the names of the substrates, products, and mediators by editing them in Cytoscape's Attribute Browser.

You can connect additional products, substrates, and products to a reaction by dragging their associated shapes from the palette and dropping them on the reaction's connector node. An example of a reaction with two products is shown in the figure below.

attachment:hyperedge_two_products.png

An example of a reaction with two products and two substrates is shown in the figure below.

attachment:hyperedge_two_products_two_substrates.png

/!\ Here

To connect two nodes with an edge, drag and drop an arrow shape onto a node on the canvas. This node becomes the source node of the edge. Move the cursor and a rubber-banded line follows the cursor. As the cursor passes over another node, that node is highlighted and the rubber-banded line will snap to a connection point on that second node. Click the mouse while over this node and the connection is established.

attachment:glycolosis.pmg

You can abort the drawing of the edge by clicking on an empty spot on the palette.

Note that if you change the Visual Style, the palette used by the current network view will also change to be consistent with the mappings in the new Visual Style.

There is also an Edit → Connect Selected Nodes menu item that, when chosen, creates a clique amongst the selected nodes.

The editor provides accelerators for adding nodes and edges. Control-clicking at a position on the canvas creates a node at that position. The NODE_TYPE attribute of the node will be the same as the NODE_TYPE of the node most recently added, defaulting to "DefaultNode" type. In this manner, you can use control-clicking as a kind of "stamp" to add multiple nodes of the same type to the network. Control-clicking on a node on the canvas starts an edge with source at that node. Move the cursor and a rubber-banded line follows the cursor. As the cursor passes over another node, that node is highlighted and the rubber-banded line will snap to a connection point on that second node. Control-click the mouse again and the connection is established. The EDGE_TYPE attribute of the edge will be the same as the EDGE_TYPE of the edge most recently added, defaulting to "DefaultEdge" type. You can abort the drawing of the edge by control-clicking on an empty spot on the palette.

You can delete nodes and edges by selecting a number of nodes and edges, then selecting the Edit → Delete Selected Nodes and Edges menu item. You can recover any nodes and edges deleted from a network by selecting the Edit → Undo menu item. Note that this will restore all nodes and edges that were previously deleted from the network, not just those deleted by the most recent delete operation.

attachment:krebs_cycle.png

EditingBiochemicalReactions (last edited 2009-02-12 01:03:14 by localhost)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux