Using ggir data - chronopsychiatry/AmbientViewer GitHub Wiki
GGIR is a widely used R package for processing of accelerometry data.
Its output data can be used in Ambient Viewer, as they have a somewhat similar structure to Somnofy data:
- The "day summary" results (output from part 5) are similar to the Somnofy Sessions
- The "raw output" time-series (part 5) are similar to the Somnofy Epochs
The raw output is not produced by default by the GGIR pipeline. To enable it, set the option save_ms5rawlevels
to TRUE
. The output can then be found in meta/ms5.outraw (one folder by combination of MVPA parameters). The "behavioralcodes" file details the different codes for sleep and the different types of physical activity, which are displayed on the hypnogram figure.
Once the data is loaded into Ambient Viewer, all data curation and plotting works the same as with Somnofy data.
At the moment, outputs from other parts of the GGIR pipeline (e.g. part 2 or part 4) are not supported.