wadpac / GGIR

Code corresponding to R package GGIR
https://wadpac.github.io/GGIR/
Apache License 2.0
94 stars 60 forks source link

Sleep Log: Missing Onset or Offset #1153

Closed michelle-kubicki closed 2 months ago

michelle-kubicki commented 3 months ago

Hello! General question, we have some sleep log days in which only either a waketime or bedtime is provided, but not both. I've attached a screenshot of the log formatting for these cases. In the full and cleaned outputs we've found some strange results, such as output ignoring the onset/offset label and counting two consecutive waketimes as sleep and wake timing, resulting in what looks like a sleep period of only around 20 minutes. For nights where either sleep onset or offset are missing, should we just keep both onset and offset data blank to let GGIR analyze the night using just actigraphy data instead of the log? Or would we just have to use results found in the QC folder? We'd like to still have these nights included in the report, even if a waketime or bedtime is missing.

Capture
vincentvanhees commented 3 months ago

Hello, GGIR ignores the sleeplog for a night if it cannot find both onset and wakeup are available.

Possible solutions you may want to consider:

michelle-kubicki commented 3 months ago

Vincent, that helps! Thank you so much!