Thank you for your work on GGIR and providing a platform to score accelerometer data. I am a doctoral student studying sleep and chronic diseases sleep and hope to use GGIR to score Actigraph devices for my research. I have worn an Actigraph GT9X device to practice scoring my own data in GGIR. I am able to successfully score the data, however, the Part 4 report is missing in the output. Additionally, when looking at the Part 5 day summary report, the guider is listed as HDCZA. In the code I am using, I am providing a sleep log and would like that to be the guider. Below is the code I am using, the message in the Console after scoring, and a screenshot of the .csv sleep log. My question is: how do I get the code to use my sleep log as the guider instead of the HDCZA algorithm?
I am using GGIR Version 2.8-1. Thank you for your help. I look forward to your response!
GGIR::g.shell.GGIR(
datadir=("C:/Users .... /Data"),
outputdir=("C:/Users/ .... /Scored"),
mode=c(1,2,3,4,5),
do.cal = TRUE, # added
do.enmo = TRUE, # added
do.anglez = TRUE, # added
do.report=c(2,4,5),
#=====================
# Part 2
#=====================
strategy = 1,
hrs.del.start = 0,
hrs.del.end = 0,
maxdur = 9,
includedaycrit = 16,
qwindow=c(0,24),
mvpathreshold =c(100, 120),
bout.metric = 4,
excludefirstlast = FALSE,
includenightcrit = 16,
#=====================
# Part 3 + 4
#=====================
ignorenonwear = TRUE, # added
def.noc.sleep = 1,
outliers.only = TRUE,
criterror = 4,
do.visual = FALSE,
loglocation=("C:/Users/.... /Log/Practice_log.csv"), #added
relyonguider=FALSE, # added
sleeplogidnum=FALSE, #added
colid=1, #added
coln1=2, #added
nnights=7, #added
#=====================
# Part 5
#=====================
threshold.lig = c(30),
threshold.mod = c(100),
threshold.vig = c(400),
boutcriter = 0.8,
boutcriter.in = 0.9,
boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8,
boutdur.in = c(1,10,30),
boutdur.lig = c(1,10),
boutdur.mvpa = c(1),
includedaycrit.part5 = 2/3,
#=====================
# Visual report
#=====================
timewindow = c("WW"),
visualreport=TRUE)
GGIR version: 2.8.1
Do not forget to cite GGIR in your publications via a version number and
Migueles et al. 2019 JMPB. doi: 10.1123/jmpb.2018-0063.
See also:
https://cran.r-project.org/package=GGIR/vignettes/GGIR.html#citing-ggir To make your research reproducible and interpretable always report:
(1) Accelerometer brand and product name
(2) How you configured the accelerometer
(3) Study protocol and wear instructions given to the participants
(4) GGIR version
(5) How GGIR was used: Share the config.csv file or your R script.
(6) How you post-processed / cleaned GGIR output
(7) How reported outcomes relate to the specific variable names in GGIR
__________________________________________________________________________________________________________________________________________________________________________
Part 1
Checking that user has read access permission for all files in data directory: Yes
Checking that user has write access permission for directory specified by argument outputdir: Yes
1
P1 file 1
Investigate calibration of the sensors with function g.calibrate:
Loading chunk: 1 2 3 4 5 6 7
Extract signal features (metrics) with the g.getmeta function:
Loading chunk: 1 2 3 4 5 6 7 8
Save .RData-file with: calibration report, file inspection report and all signal features...
__________________________________________________________________________________________________________________________________________________________________________
Part 2
1
__________________________________________________________________________________________________________________________________________________________________________
Part 3
1
__________________________________________________________________________________________________________________________________________________________________________
Part 4
1
__________________________________________________________________________________________________________________________________________________________________________
Part 5
1
__________________________________________________________________________________________________________________________________________________________________________
Report part 2
1
__________________________________________________________________________________________________________________________________________________________________________
Report part 4
loading all the milestone data from part 4 this can take a few minutes
[1] "report not stored, because no results available"
__________________________________________________________________________________________________________________________________________________________________________
Report part 5
loading all the milestone data from part 5 this can take a few minutes
generating csv report for every parameter configurations...
WW-30-100-400-T5A5
__________________________________________________________________________________________________________________________________________________________________________
Generate visual reports
[1] "File TAS1H45211403_2022-10-03___09-25-12RAW.csv"