Accelting
← Blog archive

· VINCENT VAN HEES

GGIR release 2.7-1

From the Accelting archive. This article is preserved as published; consultancy enquiries now go through SE4BIO ↗.

In this blog post I will talk you through the main updates in the new GGIR 2.7-1 release. For a full list of updates since the previous CRAN release (version 2.6-0), see the GGIR changelog.

File handling

Function g.shell.GGIR() simplified to GGIR()

Given that g.shell.GGIR() was difficult to pronounce we simplified it to just GGIR() as now clarified in the vignette. The underlying code is identical. Note that function g.shell.GGIR should still work, but please let us know if you have difficulties.

Cosinor analysis

Cosinor analysis entails the fitting of a cosine curve to the accelerometer data to estimate basic characteristics of the circadian rhythm. To enable this with GGIR, a dependency has been added to R package ActCR as developed by Dr. Junrui Di and colleagues. By specifying GGIR argument cosinor = TRUE, GGIR will now conduct both cosinor and extended cosinor analysis (as proposed by Marler et al. 2006) as part of the GGIR part 2. For specific implementation details see our new vignette paragraph on Circadian Rhythm analysis with GGIR.

The addition of the cosinor and extended cosinor analysis has been sponsored by Dr. Séverine Sabia (ANR grant), Université de Paris, Inserm in Paris. Also we would like to thank Dr. Junrui Di for making a new ActCR release to facilitate the integration with GGIR.

Advanced sleeplog

The advanced sleeplog was introduced in 2021 and allows for more information than the basic sleep log. Various updates and bug fixes were made in relation to the advanced sleeplog handling:

The improvements to the advanced sleeplog handling have been sponsored by Dr. Beets and the Arnold Childhood Obesity Initiative Research Group at the University of South Carolina.

Output files

Macos 11 with arm64 architecture not updated yet

We are having difficulties getting the GGIR version 2.7-1 approved for MacOS 11 on arm64 architecture . If this affects you, then you can install the latest GGIR release via GitHub with R package devtools (or the remotes package) instead if you are not using sleeplogs or you could stick with version 2.6-0 as available on CRAN. If you have access to such a machine and are in interested in helping us fix the issue then please let us know via this thread on GitHub.