Bee Sleep code
this is the code we used for the analyses in Nagari et al. Current Biology 2019