copycatLayout

Clone a network view layout by mapping node column values
## *Core App*: copycatLayout ### Note: This app is pre-installed in Cytoscape 3.6 or later **_You should not download this app_ from the store yourself. If Cytoscape detects that a new version is available in the App Store, it will notify you as it's starting and will give you a chance to download it directly.** **_You should not download this app_ if your Cytoscape is earlier than 3.6. An earlier version of this app is pre-installed in your Cytoscape, and this app cannot replace it.** Copycat layout is an improvement upon the [layoutSaver app](http://apps.cytoscape.org/apps/layoutsaver), with several new features: 1. Network view location and zoom are copied as well, for complete view alignment 1. Option to select unmapped nodes 1. CyREST functionality. Call Copycat in a Cytoscape Automation script Copycat layout takes two networks and two node columns as input. The source networks is used as a reference layout. Nodes in the source network are paired with nodes in the target network, based on the node attribute specified. The default mapping column is the `name` column. Nodes in the target network are relocated to the XY coordinate of their partner node in the source network. Once all nodes have been moved, the view camera is adjusted to match that of the source. Optionally, unpaired nodes are selected, and other layouts (eg GridLayout) can be executed for better readability. Take for example, the source and targets shown below. The target network is a near exact replica of the source, but a circular layout has been applied. You wouldn't be able to tell just by glancing at the networks because they looks so different. [https://github.com/cytoscape/copycat-layout/blob/master/images/pre-copycat.png Pre-copycat layout] Now apply Copycat layout, using the `name` column in both networks to map nodes. Selecting unmapped nodes will highlight the nodes that appeared in one network and not the other. Now we can quickly determine what the differences are between our source and target networks. [https://github.com/cytoscape/copycat-layout/blob/master/images/post-copycat.png Post-copycat layout] ### Calling via CyREST You can also call Copycat via its CyREST endpoint, in Python or R scripts Copycat 1.2.3 offers an endpoint at `/v1/apply/layouts/copycat/{sourceViewSUID}/{targetViewSUID}`, which can be called with the python `requests` module: REST_PORT='1234' REST_ENDPOINT = "http://localhost:{}/v1".format(REST_PORT) import requests sourceViewSUID = # Add source SUID targetViewSUID = # Add target SUID data = { "sourceColumn": "name", "targetColumn": "name", "selectUnmapped": True, "gridUnmapped": False } resp = requests.put("{}/apply/layouts/copycat/{}/{}".format(REST_ENDPOINT, \ sourceViewSUID, targetViewSUID), params=data) data = resp.json()['data'] print("Mapped {} nodes, left {} unmapped in the target network".format(data['mappedNodeCount'], data['unmappedNodeCount'])) ```

1.3.1

Works with Cytoscape 3.8


1.2.3

Works with Cytoscape 3.6


0.0.9

Works with Cytoscape 3.5


1.2.2

Works with Cytoscape 3.6


1.2.1

Works with Cytoscape 3.6

Release Notes

added canceling

1.2.0

Works with Cytoscape 3.6


CYTOSCAPE 3

Version 1.3.1

Released 23 Apr 2020

Works with Cytoscape 3.8

Download Stats Click here