Code for Nichols 2017 (MATLAB).
Please see Scripts_used_for_Nichols_2017.rtf for more details.
Nichols, A. L. A., Eichler, T., Latham, R., & Zimmer, M. (2017). A global brain state underlies C. elegans sleep behavior. Science (New York, NY), 356(6344), eaam6851.
@article{nichols2017global,
title={A global brain state underlies C. elegans sleep behavior},
author={Nichols, Annika LA and Eichler, Tom{\'a}{\v{s}} and Latham, Richard and Zimmer, Manuel},
journal={Science},
volume={356},
number={6344},
pages={eaam6851},
year={2017},
publisher={American Association for the Advancement of Science}
}