py4cytoscape.tables.delete_table_column

delete_table_column(column, table='node', namespace='default', network=None, base_url='http://127.0.0.1:1234/v1')[source]

Delete a column from node, edge or network tables.

Parameters
  • column (str) – Name of the column to delete

  • table (str) – Name of table, e.g., node (default), edge, network

  • namespace (str) – Namespace of table. Default is “default”.

  • 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

’’

Return type

str

Note

No error is returned if the column doesn’t exist in the table

Raises
  • HTTPError – if table or namespace doesn’t exist in network

  • CyError – if network name or SUID doesn’t exist

  • requests.exceptions.RequestException – if can’t connect to Cytoscape or Cytoscape returns an error

Examples

>>> delete_table_column('BetweennessCentrality')
''
>>> delete_table_column('EdgeBetweenness', table='edge')
''
>>> delete_table_column('BetweennessCentrality', network='My Network')
''