Monday, May 26, 2008

Cytoscape Plugin Dev Environment


Materials:

After struggling for a couple of hours, I finally got Netbeans setup to do the work!
Netbeans IDE, Cytoscape Source

Setup:
1. Install Netbeans IDE
2. Install Cytoscape
3. Create a custom plugin folder (for example: c:/cytoscape/plugins/dev/)
4. Create a Netbeans java project
5. Add Cytoscape libs to the project. Specifically, cytoscape.jar and all the /libs/ folder
6. Edit the project properties by right click on the project name. Under 'Run' item,
enter (not by browsing) cytoscape.CyMain; in the arguments, add -p 'your plugin folder'
7. Go to the project folder in the file system, in nbproject folder, edit project.properties, change value of dist.jar to your full file path with the jar name.
For example: dist.jar=C:/Program Files (x86)/Cytoscape_v2.6.0/plugins/dev/HelloWorld.jar, note you should not use any quotes!

Now you are done. You can debug your Cytoscape plugin, you set break points, watch...
it's just nice and easy!
------------------------------------------------------------------------------------
Update: you can directly load a sif file:
-N – Load a .sif file
-n – Load node attributes
-e – Load edge attributes

Thanks for help from Maital Ashkenazi

No comments: