Hi Dr. van Hees & Team,
We are trying to apply the data_cleaning_file parameter to exclude specific, manually identified, problematic sleep nights and days from outputs part 4 and part 5. We have followed instructions in the vignette for setting up the .csv file, i.e., columns “ID”, “day_part5”, “night_part4”, with separate rows for each combination of ID and night. However, when we run this with our code (pasted below), the problematic nights remain in the night and day-level output in “part4_nightsummary_sleep_ cleaned” and “part5_daysummary”.
We would greatly appreciate your help if you can see where we might be going wrong here.
Thank you so much,
Kelsey & Audrey.
GGIR(
mode=c(1:5),
#=====================
# General + Part 1
#=====================
datadir="",
outputdir="”,
desiredtz = "America/New_York",
overwrite = TRUE,
print.filename = TRUE,
do.parallel = TRUE,
#=====================
# Part 2
#=====================
idloc = 2,
strategy = 1,
maxdur = 0,
ilevels = seq(0,600,by=25),
iglevels = c(seq(0,4000,by=25),8000),
qlevels = c(960/1440, 1320/1440, 1380/1440, 1410/1440, 1430/1440, 1435/1440, 1438/1440),
mvpathreshold =c(100),
printsummary = TRUE,
do.part2.pdf = TRUE,
epochvalues2csv = TRUE,
winhr = c(5,10),
cosinor = TRUE,
#=====================
# Part 3+4
#=====================
do.part3.pdf = TRUE,
outliers.only = FALSE ,
#=====================
# Part 5
#=====================
threshold.lig = c(35), threshold.mod = c(100), threshold.vig = c(430),
boutcriter = 0.8, boutcriter.in = 0.9, boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8, boutdur.in = c(10,20,30,60), boutdur.lig = c(1,5,10),
boutdur.mvpa = c(5,10),
includedaycrit.part5 = 2/3,
frag.metrics="all",
part5_agg2_60seconds = TRUE,
week_weekend_aggregate.part5 = TRUE,
#=====================
# Visual Report
#=====================
timewindow = c("MM", "WW"),
do.report=c(2,4,5),
visualreport = TRUE,
#=====================
# QC
#=====================
data_cleaning_file = "file path/ID_nights.csv"
)
--
You received this message because you are subscribed to the Google Groups "R package GGIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to RpackageGGIR...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/4c1274e9-4da9-4324-8805-a2d13602fb08n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "R package GGIR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/RpackageGGIR/VEuH-CgrGas/unsubscribe.
To unsubscribe from this group and all its topics, send an email to RpackageGGIR...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/UygY8eiitGmcI1atVKyYLyfAPQLEPIsodlU9Gl_O7QgkgV6dOtTIqO46Al-6E3fcgtuS5-kt-pKgL2qc7ZPuEc7TeqPg0zuZuwwC9q--6XA%3D%40accelting.com.
However, we have already processed 7 timepoints of data (each with 7 days of data) for the same study, so we would prefer to use our current version of GGIR (2.10.1) to avoid having to reprocess them all if we used the updated GGIR version (3.1.1)...
We see on the vignette that the data_cleaning_file is coded as a character vector, however, as Vincent mentions above the function only seems to work with numeric IDs.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/CABXKjPTH_fdLVt-ChQ3TC8yOoYqTBi1ADWn7iteMC%2BwC2xqPbA%40mail.gmail.com.