The molecular basis of metabolic cycles and their relationship to circadian rhythms