pymaid.get_node_tags

pymaid.get_node_tags(node_ids, node_type, remote_instance=None)[source]

Retrieve tags for a set of nodes OR connectors.

Parameters:
  • node_ids – Single or list of node or connector IDs.

  • node_type ('NODE' | 'CONNECTOR') – Set which node type of IDs you have provided as they use different API endpoints!

  • remote_instance (CatmaidInstance, optional) – If not passed directly, will try using global.

Returns:

dictionary containing tags for each node: {'nodeID': ['tag1', 'tag2', ...], 'nodeID' : [...], ...}

Return type:

dict

Examples

>>> pymaid.get_node_tags(['6626578', '6633237']
...                       'NODE',
...                       remote_instance)
{'6633237': ['ends'], '6626578': ['ends']}

See also

pymaid.add_tags()

Use to add tags to nodes.

pymaid.delete_tags()

Use to delete node tags.