cytoscape / py4cytoscape

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

Add set_node_label_position_default #125

Closed bdemchak closed 10 months ago

bdemchak commented 10 months ago

Follow example of RCy3 in style_defaults.py https://github.com/cytoscape/RCy3/commit/e1d2deb511aa4544ae2863db1d88622914289010 and add set_node_label_position_default and get_node_label_position_default. Also, get_node_label_position and set_node_label_position_bypass. Also set_node_position_bypass.

See https://github.com/cytoscape/RCy3/commit/ee293a684d0d8d9446d3703102ca41ea94617f14 and https://github.com/cytoscape/RCy3/commit/930baa4c927070c1f4e73b0a4dc15af2f42cc5ea and https://github.com/cytoscape/RCy3/commit/ebebd842cc9dda496aabb39c5c2a603ecc625b7c

Fix set_node_position_bypass NULL handling per https://github.com/cytoscape/RCy3/commit/f6b9b6b745e4e6006a3ffc2cec442612c9c66a93

bdemchak commented 10 months ago

Implemented

* set_node_position_bypass(node_names, new_x_locations=None, new_y_locations=None, network=None, base_url=DEFAULT_BASE_URL)

* set_node_label_position_bypass(node_names, new_positions, network=None, base_url=DEFAULT_BASE_URL)

* get_node_label_position_default(style_name=None, base_url=DEFAULT_BASE_URL)

* set_node_label_position_default(new_node_anchor, new_graphic_anchor, new_justification, new_xoffset, new_yoffset, style_name=None, base_url=DEFAULT_BASE_URL)

* get_node_label_position(node_names=None, network=None, base_url=DEFAULT_BASE_URL)