SIF annotation

3 views
Skip to first unread message

john alexander

unread,
Jun 18, 2016, 8:25:26 AM6/18/16
to cytoscapeweb-discuss
Hello,

    I've managed to get cytoscape-web to work with the help of a SIF file. What I would like is for the nodes to have annotation information on clicking?  Could you please let me now how this is possible.

cheers,
John

Here is my code:

        <script type="text/javascript">

            window.onload=function() {

                // id of Cytoscape Web container div

                var div_id = "cytoscapeweb";

                

                // initialization options

                var options = {

                    // where you have the Cytoscape Web SWF

                    swfPath: "cytoscape/swf/CytoscapeWeb",

                    // where you have the Flash installer SWF

                    flashInstallerPath: "cytoscape/swf/playerProductInstall"

                };

                

                // init and draw

                var vis = new org.cytoscapeweb.Visualization(div_id, options);

                     $.ajax({


            url: "cytoscape/pathway_output/cytoscape_pathway.sif"  ,

          

            

            success: function(data){

            vis.draw({ network: data });

            },

            error: function(){

                alert("Error loading file");

            }

        });

            };

            

        </script>




Reply all
Reply to author
Forward
0 new messages