cytoscape / py4cytoscape

Python library for calling Cytoscape Automation via CyREST
https://Py4Cytoscape.readthedocs.io
Other
70 stars 14 forks source link

Add get_network_list() #84

Closed bdemchak closed 2 years ago

bdemchak commented 2 years ago
  1. While py4cytoscape can use get_collection_networks() to retrieve all of the network SUIDs in a collection, it can only return all network SUIDs by also calling get_collection_list(). Metascape would work easier if there were to be a convenience function to fetch all network SUIDs. Net-net: Update

get_network_list(base_url, *, names=True) – CyREST “GET /v1/networks”

Note that the current get_network_list() returns network names and is terribly slow for large networks. Metascape requires SUIDs, not network names, so I propose adding an optional parameter that determines what is returned.

Note that the “*, names=True” is a Pythonism that requires names= to be a named parameter, and therefore preserves the function signature for any caller already using the current function.

bdemchak commented 2 years ago

Done