py4cytoscape.annotations.delete_annotation
-
delete_annotation
(names=None, base_url='http://127.0.0.1:1234/v1')[source] Delete Annotation
Remove an annotation from the current network view in Cytoscape
- Parameters
names (UUID or str or list) – Single UUID or str, or list of UUIDs or str
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
None
- Raises
CyError – if invalid name list
requests.exceptions.HTTPError – if can’t connect to Cytoscape or Cytoscape returns an error
Examples
>>> delete_annotation('ann1') >>> delete_annotation(['ann1', 'ann2']) >>> delete_annotation(['016a4af1-69bc-4b99-8183-d6f118847f96', '016a4af1-69bc-4b99-8183-d6f118847f97'])