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
Degrees and 1 gait cycle for gait processing
- Chad Morrison
- Posts: 3
- Joined: Mon Jul 01, 2024 9:42 am
- Matt Petrucci
- Posts: 166
- Joined: Fri Feb 24, 2012 11:49 am
Re: Degrees and 1 gait cycle for gait processing
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.
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.
- Chad Morrison
- Posts: 3
- Joined: Mon Jul 01, 2024 9:42 am
Re: Degrees and 1 gait cycle for gait processing
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.
Would you have any info on how to create the plots for only 1 gait cycle? Right now they are for 3.5 seconds.
- Matt Petrucci
- Posts: 166
- Joined: Fri Feb 24, 2012 11:49 am
Re: Degrees and 1 gait cycle for gait processing
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,
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,