From 78e954fb2010e354dd6b01d97d252a8d3bc69c5b Mon Sep 17 00:00:00 2001 From: Luigi Petrucco Date: Wed, 11 Dec 2024 15:01:28 +0100 Subject: [PATCH] added entry in input_output docs --- docs/source/user_guide/input_output.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/source/user_guide/input_output.md b/docs/source/user_guide/input_output.md index a27691f0..4dd7445f 100644 --- a/docs/source/user_guide/input_output.md +++ b/docs/source/user_guide/input_output.md @@ -10,6 +10,7 @@ To analyse pose tracks, `movement` supports loading data from various frameworks - [DeepLabCut](dlc:) (DLC) - [SLEAP](sleap:) (SLEAP) - [LightingPose](lp:) (LP) +- [Anipose](anipose:) (Anipose) To analyse bounding boxes' tracks, `movement` currently supports the [VGG Image Annotator](via:) (VIA) format for [tracks annotation](via:docs/face_track_annotation.html). @@ -84,6 +85,22 @@ ds = load_poses.from_file( ``` ::: +:::{tab-item} Anipose + +To load Anipose files in .csv format: +```python +ds = load_poses.from_anipose_file( + "/path/to/file.analysis.csv", fps=30, individual_name="individual_0" +) # We can optionally specify the individual name, by default it is "individual_0" + +# or equivalently +ds = load_poses.from_file( + "/path/to/file.analysis.csv", source_software="Anipose", fps=30, individual_name="individual_0" +) + +``` +::: + :::{tab-item} From NumPy In the example below, we create random position data for two individuals, ``Alice`` and ``Bob``,