py4cytoscape.style_values.get_edge_line_width¶
- get_edge_line_width(edge_names=None, network=None, base_url='http://127.0.0.1:1234/v1')[source]¶
Retrieve the actual line width of specified edge.
- Parameters
edge_names (list) – List of edge names or edge SUIDs. Default is None for all edges.
network (SUID or str or None) – Name or SUID of a 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://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of py4cytoscape.
- Returns
as a collection of {edge-name: width} for each edge in edge_names parameter
- Return type
dict
- Raises
CyError – if network name or node doesn’t exist
requests.exceptions.RequestException – if can’t connect to Cytoscape or Cytoscape returns an error
Examples
>>> get_edge_line_width() {'YLR197W (pp) YOR310C': 2.0, 'YIL074C (pp) YNL311C': 2.0, ...} >>> get_edge_line_width(['YHR084W (pd) YFL026W', 'YHR084W (pd) YDR461W', 'YMR255W (pp) YGL122C']) {'YHR084W (pd) YFL026W': 2.0, 'YHR084W (pd) YDR461W': 2.0, 'YMR255W (pp) YGL122C': 2.0} >>> get_edge_line_width([421382, 421383, 421380]) {421382: 2.0, 421383: 2.0, 421380: 2.0} >>> get_edge_line_width(edge_names='YOR355W (pp) YNL091W', network='galFiltered.sif') {'YOR355W (pp) YNL091W': 2.0}