deepof.utils.connect_mouse

deepof.utils.connect_mouse(animal_ids=None, exclude_bodyparts: list | None = None, graph_preset: str = 'deepof_14') Graph

Create a nx.Graph object with the connectivity of the bodyparts in the DLC topview model for a single mouse.

Used later for angle computing, among others.

Parameters:
  • animal_ids (str) – if more than one animal is tagged, specify the animal identyfier as a string.

  • exclude_bodyparts (list) – Remove the specified nodes from the graph.

  • graph_preset (str) – Connectivity preset to use. Currently supported: “deepof_14” and “deepof_8”.

Returns:

connectivity (nx.Graph)