This directory contains documentation for the mouse trajectory analysis pipeline.
- PIPELINE.md: Complete guide to the full pipeline (extraction → JARVIS prediction)
- TRAJECTORY_VISUALIZATION.md: Documentation for trajectory visualization scripts (
plot_trajectory_xy.py,plot_trajectory_on_frame.py,extract_first_frame.py) - FLOW_FIELD_PLOTS.md: How the two flow-field panels (elevation + flow direction, flow speed + flow direction) are computed and what they show
- RORY_MIDLINE_AND_GOALS.md: Rory midline-and-goals analysis (output dir
midline_and_goals/): elevation/flow panels, midline_and_goals.json, path plots by crossing count and late phase/vertical left–right, crossing-location histograms - ANALYSIS_SUMMARY.md: Summary of trajectory analysis: mouse choice (side pick at peak z), side-pick heatmap, vertical-on-left/right trajectory and flow-field plots, and trial-type filtering
- ../ISSUE_LOG.md: Known issues and troubleshooting
-
Extract trial frames:
python run_full_pipeline.py --step 1 --animals rory wilfred
-
Run JARVIS 3D prediction:
python run_full_pipeline.py --step 2 --animals rory wilfred
-
Analyze trajectories:
- Use
data3D.csvfiles frompredictions3D/directories - See example analysis scripts (to be added)
- Use
The pipeline processes video recordings of mice performing climbing trials:
- Extract trial frames: Matches video frames to door open/close events from robot logs
- JARVIS 3D prediction: Generates 3D pose estimates for each trial using multi-camera calibration
- Downstream analysis: Speed, directedness, elevation gain, etc. (see analysis scripts)
For detailed documentation, see PIPELINE.md.