Pulling Activity Counts from Actigraph Data
miahoffmannd opened this issue · comments
I was very excited to stumble across this API. However, I am using Actigraph (WGT3X) data to measure movement and need to pull the raw data of whether the individual is lying down, standing up, or sitting. This information is currently coded into the .agd file, but I cannot access it. Any help here would be great!
Hello @miahoffmannd
I just made some modification in the "feature/agd" branch in order to provide access to the positional information.
Could you confirm that the new methods:
- RawAGD.inclineOff
- RawAGD.inclineStanding
- RawAGD.inclineSitting
- RawAGD.inclineLying
provide access to the positional information you want?
I also implemented a new method, "inclinePosition" which returns a time series with the most probable state (maximum counts across all the "incline" states (Off, Lying, Sitting, Standing). It is also possible to map these states to integer (as done by default).
As usual, for more info:
import pyActigraphy
help(pyActigraphy.io.agd.RawAGD.inclinePosition)
Once you confirm it is fine on your side with this new code, I'll merge into develop.
Hope that helps.
Greg
PS: if you like the package, please "star" it on GitHub and spread the words. Many thanks.
That worked great. Thank you!