Metrics Derivation
Use this skill when a user asks for quantitative kinematics, spatial zone, or behavioral ethogram endpoints rather than raw frame labels.
Canonical Annolid Tools & CLI Entrypoints
- Trajectory Kinematics & Freezing:
- Tool:
annolid_kinematics_stats| CLI:annolid-run kinematics <tracking_csv_or_dir> [--fps ...] [--px-per-cm ...] - Endpoints: total distance (
pxandcm), mean/median/P95/max speed, acceleration, angular velocity, path straightness index, tortuosity, freezing bouts &% freezing, high-activity bouts, and pairwise inter-animal distance + velocity correlation.
- Spatial Zones & Place Preference:
- Tool:
annolid_zone_analysis| CLI:annolid-run zone-analysis <video_or_csv> --zone-file <zones.json> --profile <generic|open_field|elevated_plus_maze|three_chamber_social> - Endpoints: occupancy
%, entries, transitions, first-entry latency (s), mean/max visit dwell (s), and signed boundary distance (supporting polygon, rectangle, and 2-point circle ROIs).
- Behavior Time Budgets & Binned Summaries:
- Tool:
annolid_behavior_time_budget| CLI:annolid-run time-budget <events.csv> [--session-duration ...] [--bin-size ...] - Endpoints: occurrences, total/mean/median/min/max bout duration (
s), interval-union% of session(never exceeding 100%), and per-bin trajectories (*_binned.csv).
- Anatomical Body-Part Ethograms:
- CLI:
annolid-run body-part-ethogram <annotation_dir> [--fps ...] [--events-csv ...]
Method
- Always verify spatial (
px_per_cm) and temporal (fps,session_duration) calibration before comparing across recordings. - State exact numerators, denominators, and censoring rules (e.g. animals that never enter a zone have censored latency rather than
0 s). - Keep physical units (
cm,cm/s,s,%) vs image-plane units (px,px/frame) explicit in every table. - Surface Track QC or Ethogram QC caveats whenever missing frames or unpaired state events exist.