Flags a glucose cycle as invalid if it contains gaps greater than 15 minutes or an incomplete sleep-wake interval, matching the QC criterion used for visual inspection of automated peak detections in the manuscript pipeline (see Figure 1 caption, Pugliane et al., 2026 preprint).
Arguments
- cycle
An object of class
sugaR_cycle, as returned bybuild_glucose_cycle().- max_gap_min
Numeric, maximum allowed gap (minutes) within the CGM trace. Default
15.