An analysis tool for cognitive neuroscience