py4cytoscape.annotations.group_annotation¶
-
group_annotation
(names=None, network=None, base_url='http://127.0.0.1:1234/v1')[source]¶ Group Annotation
Group annotation from the network view in Cytoscape
- Parameters
names (UUID or str or list) – Single UUID or str, or list of UUIDs or str
network (SUID or str or None) – Name or SUID of the network. Default is the “current” network active in Cytoscape.
base_url (str) – Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of py4cytoscape.
- Returns
A named list of annotation properties, including UUID
- Return type
dict
- Raises
CyError – if invalid name list
requests.exceptions.HTTPError – if can’t connect to Cytoscape or Cytoscape returns an error
Examples
>>> group_annotation(['016a4af1-69bc-4b99-8183-d6f118847f96', '016a4af1-69bc-4b99-8183-d6f118847f97']) {'canvas': 'foreground', 'rotation': '0.0', 'name': 'Group 1', 'x': '2449.0', 'y': '1882.0', 'z': '0', 'type': 'org.cytoscape.view.presentation.annotations.GroupAnnotation', 'uuid': '303ac590-495b-44a9-8743-0a8c13e22e6f', 'memberUUIDs': '016a4af1-69bc-4b99-8183-d6f118847f96,016a4af1-69bc-4b99-8183-d6f118847f97'}