Attachment 'load_multiple_networks.rb'

Download

   1 require 'java'
   2 
   3 include_class 'cytoscape.Cytoscape'
   4 include_class 'cytoscape.layout.CyLayouts'
   5 include_class 'cytoscape.layout.LayoutAlgorithm'
   6 include_class 'cytoscape.CytoscapeInit'
   7 
   8 props = CytoscapeInit.getProperties
   9 props.setProperty("layout.default", "force-directed")
  10 
  11 Dir::glob("sampleData/*.sif").each {|f|
  12 	puts "Loading: " + f
  13         Cytoscape.createNetworkFromFile f
  14        	Cytoscape.getCurrentNetworkView.redrawGraph(false, true)
  15 }
  16 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.

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