Cytoscape 3.0 App Development
Cytoscape 3.0 has a clearly defined, simplified API. API jars are strictly separate from the implementation jars. We believe that we’ve learned our lessons with 2.x and have greatly improved the usability of the API to benefit our active developer community. The API is versioned using the Semantic Versioning standard. This means that the API won't change throughout 3.x, so an app designed to work with an early version of 3.x will be guaranteed to work up to version 4.0 of Cytoscape. Our commitment to supporting app developers is stated in an explicit backwards compatibility contract found in each class in the public API so that both core developers and app writers will understand how a class might change.
Architecture and Technologies
Cytoscape 3.0 strives for a modular architecture where the application consists of a set of jar files where each jar contributes a well defined subset of functionality to the application. The design is oriented around the OSGi service model (i.e. micro service) with API and implementation separated into different jar files. We’ve introduced the use of OSGi as a way to create and enforce a modular, sustainable code base. We’ve also introduced Maven as a build system to help manage the many jar files created.
API and Javadocs
Plugins, Simple Apps and Bundle Apps
If you've developed Cytoscape plugins before, then you will notice quite a few changes in developing for Cytoscape 3.0. These changes cover both core and plugin architectures. To highlight the differences and added benefits of developing on the Cytoscape 3.0 platform, we're now calling them apps. So, consider porting your 2.x plugins to 3.0 apps. And if you are new to Cytoscape development, you can pretty much ignore plugins and focus on the app developer documentation.
Here is a guide to set up your development environment for Cytoscape 3.0 apps.
There's a lot to learn about OSGi and Maven. We don't expect everyone to have the time to learn about them. So we have two types of apps, simple and bundle.
Simple Apps don't require any understanding of OSGi or Maven. They are single jars, like Cytoscape 2.x plugins except for the 3.0 API. They can't take full advantage of the Cytoscape 3.0 architecture.
Bundle Apps are OSGi bundles that have all the benefits of the Cytoscape 3.0 architecture. With bundle apps, you can reference third-party jars in a consistent way and avoid the library clashes which were common in 2.x. We will host third-party jars to support your apps, if they are not already hosted by maven central or our nexus repository.
To help app developers to develop their own app, the Cytoscape developer team developed a cookbook, a collection of small code snippets.
If you are developing an OSGi bundle app and would like to learn how to include library dependencies, check out the following guide: