Script-driven spike frequency analysis