Hi, Kimmo --
I can see a few ways to do this. The Cytoscape terminology involved complicates the picture, as it doesn't help clarify what's being done.
First, to create a new collection, use the File | New | Network | Empty Network menu. This will give you the option of creating a new collection by using the dropdown.
Once you have a new collection, you can go back to your original network, select the nodes and edges you want, and use the Edit | Copy menu item to put them into the clipboard. Then select the new network and the Edit | Paste menu item to copy the nodes and edges into it.
Another (easier) way would be to select the network you want, then use the File | New | Clone Current Network ... this will create a new collection with a new network.
Both of these routes can be combined to get 20 networks into a new collection.
For getting a lot of networks into a new collection, I can think of another route ... use the File | Export | Network menu item to write each network into its own .XGMML file. Then use the File | Import | Network menu item to import each network into a new collection.
As you can see, this is possible from the UI, but not so convenient.
It should be possible to automate this in two different ways:
Use the Command Line dialog scripting (in the Tools menu) to script the exporting and importing. Of interest:
Network set current
Network select
Network export
Network import
You can find out about these from the Command Line dialog by using the "help network" command and (for example) the "help network select" command. Note that the help text is all of the documentation there is (for now) and you may have to do some experimenting with these commands to get them right. There is also documentation at
http://manual.cytoscape.org/en/3.4.0/Command_Tool.html
Finally, for better program-based control (e.g., Python), there's cyREST, which controls Cytoscape as if it were a REST server. For documentation on that:
https://github.com/cytoscape/cyREST/wiki ... It's the most flexible and powerful, but requires programming from an external framework (e.g., Jupyter, Java, etc).
Does this help??
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
cytoscape-helpd...@googlegroups.com.
To post to this group, send email to
cytoscape...@googlegroups.com.
Visit this group at
https://groups.google.com/group/cytoscape-helpdesk.
For more options, visit
https://groups.google.com/d/optout.