Page 1 of 1

Degrees and 1 gait cycle for gait processing

Posted: Tue Aug 13, 2024 10:47 am
by morrisonchad
Hi,

I have collected opencap data and have it processed in google colab using the Example.ipynb in github. Everything has ran smoothly and I have received kinematic plots. However, the code plots for values, speed, and acceleration for coordinates, muscle-tendon lengths, and center of mass, over a certain time period. My end goal is to have kinematic plots of hip, knee, and ankle, plotting the DEGREE of flexion/extension, adduction/abduction, and rotation over 1 gait cycle. How would I go about changing the code to create these plots?

Thank you

Re: Degrees and 1 gait cycle for gait processing

Posted: Tue Aug 13, 2024 12:30 pm
by mpetrucc
Hi Chad,

Instead of plotting the "speeds", you can change the code to plot the "values" of each coordinate. For example, change "coordinates['speeds']" to "coordinates['values']" where applicable.

Re: Degrees and 1 gait cycle for gait processing

Posted: Tue Aug 13, 2024 2:58 pm
by morrisonchad
Thank you Matt! I wasn't sure if 'values' corresponded to degrees in any way, but it seems to be right.

Would you have any info on how to create the plots for only 1 gait cycle? Right now they are for 3.5 seconds.

Re: Degrees and 1 gait cycle for gait processing

Posted: Thu Aug 15, 2024 2:11 pm
by mpetrucc
Hi Chad,

Have you tried the gait analysis tool in the web app? You can click the triple lines to the right of the trial and click analysis. It will give you this and other gait metrics. Note this wont work if the participant tursn during the trial.

You can also run the analysis locally to get the gait events you need to segment into gait cycles. See this post for more details: viewtopicPhpbb.php?f=2385&t=18227&p=0&s ... 6cc7ce2a88

Hope this helps,