This is the codes wrote for a paper.
Now the paper can be found at:https://www.nature.com/articles/s41598-017-04205-7
Lin, Q. & Jesuthasan, S. Masking of a circadian behavior in larval zebrafish involves the thalamo-habenula pathway. Scientific Reports 7, R927 (2017).