Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2005-11-29 00:53:21
Size: 638
Editor: KeiichiroOno
Comment:
Revision 5 as of 2006-02-08 01:38:52
Size: 1213
Editor: KeiichiroOno
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
CySession.xml is the file to save current states of the Cytoscape session. CySession.xml is the file to save current states of Cytoscape session.
Line 5: Line 5:
 3. Network Tree structure.  3. Network Tree structure (shown in Network Panel in CytoPanel 1).
Line 7: Line 7:
 5. Annotation for the session
 6. Selected/Hidden nodes/edges
 7. Plugin state
 5. Annotation (node/memo) for the session
 6. Selected/Hidden nodes and edges
 7. Plugin state (This topic should be dicussed with plugin writers)
Line 12: Line 12:
The last element is more complicated than others. First of all, we need to create a new signal called "SESSION_SAVE" and "SESSION_LOAD" to tell plugins that session save/load command is called. We may need to create a schema for each plugin to describe its state. 7 is more complicated than others. First of all, we need to create new signals called "SESSION_SAVE" and "SESSION_LOAD" to tell plugins that session save/load command is executed. To simplify this process, we may need a standard for plugin state saving mechanism. One possible solution is:

 * Create a schema for each plugin to describe its state.
 * Use JAXB to create Java code to access plugin states in an XML file.
 * Session Saving class copies state/data xml files for each plugins, and zip them into .cys file.

In any case, plugin writers are responsible to create readers/writers for their plugin state/data files. One standard they must follow is make method to catch signal generated by save/load session classes.

CySession.xml is the file to save current states of Cytoscape session. The following information will be stored in the XML document:

  1. List of networks opened in current session.
  2. States of Cytopanels 1~3.
  3. Network Tree structure (shown in Network Panel in CytoPanel 1).

  4. Session ID
  5. Annotation (node/memo) for the session
  6. Selected/Hidden nodes and edges
  7. Plugin state (This topic should be dicussed with plugin writers)

Plugin State

7 is more complicated than others. First of all, we need to create new signals called "SESSION_SAVE" and "SESSION_LOAD" to tell plugins that session save/load command is executed. To simplify this process, we may need a standard for plugin state saving mechanism. One possible solution is:

  • Create a schema for each plugin to describe its state.
  • Use JAXB to create Java code to access plugin states in an XML file.
  • Session Saving class copies state/data xml files for each plugins, and zip them into .cys file.

In any case, plugin writers are responsible to create readers/writers for their plugin state/data files. One standard they must follow is make method to catch signal generated by save/load session classes.

CySession (last edited 2009-02-12 01:04:04 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