Effects of temperature variations on the dynamics of microtubules