Skip to content
Laura Schoenhals edited this page Sep 24, 2024 · 6 revisions

Pre-requisites:

  • obtain smr files, 1 file per trial (h5 work, can skip step 1 if you have these)
  • obtain csv files with swing & stance times (sometimes these are referred to as phase files)
  • set up directory structure with the trial data

Steps:

  • convert smr to h5 with batch_convert.py
    • input which directories you want processed
    • creates h5 sub directories
  • in locoproc environment, use locoproc repository to correct knee angle based on tibia & femur lengths
  • in virtual environment for locomotion-analysis, run 'run_everything.py'

Explanation of run_everything.py:

  1. run step_table_initialize.py on each group
    • input directory containing h5 files
    • input directory containing csv files (phase files)
    • see "About step_table"
    • default statistics calculated in table for each step:
      • step duration
      • stance duration
      • swing duration
  2. animal_avgs
    • calculates avg stats for each trial
  3. group_comparison
    • calculate stats on the avgs
    • calculate stats ANOVA

Clone this wiki locally