R package for the analysis of calcium imaging data