code for human stimulation analysis