This analysis creates direction tuning curves and computes indices for pattern and component motion selectivity based on a set of drifting plaid and drifting sinusoidal grating stimuli. The plaid must be the sum of two gratings varying by 120 degrees in their direction of motion.

A partial correlation analysis is used to compute the pattern index and component index (Gizzi et al., 1985 - note that the equation for partical correlation may be incorrect in the published literature).

Any conditions in the .nda file will be included after the automatically built conditions that are used to select trials for Pattern and Component analyses.

Note: This analysis is designed to work with the specific sets of stimulus parameters found in stimulus files known as plaid120 from the Movshon lab and the Bair lab. More explanation is needed here and changes to the analysis code need to be made to make it more general.

The analysis works for continuous data (starting Feb 2019) in addition to spike channels.


Parameter definitions:


#  For plaid120.stm
group 0

start 30
period 2000

stat_filename zzz_plaid120.stat

ori_pname   direction
ampl1_pname contrast1
ampl2_pname contrast2