DOI: 10.25378/janelia.28025282.v1
title: Neuropixels recording datasets associated with the manuscript "Conjoint specification of action by neocortex and striatum"

description: <br><b>Data description</b><b>js2p0_tbytSpkHandJsTrjBin_WR37_022119.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR37_022219.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR38_052119.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR38_052219.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR38_052319.mat</b>MOs recording only<b>js2p0_tbytSpkHandJsTrjBin_WR38_052419.mat</b>MOp and STR recording<b>js2p0_tbytSpkHandJsTrjBin_WR39_100219.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR40_081919.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR40_082019.mat</b>Simultaneous recording of MOp, MOs, STR<b>js2p0_tbytSpkHandJsTrjBin_WR44_031020.mat</b>Simultaneous recording of MOp, MOs, STR<br>Each mat file (‘js2p0_tbyt…’) contains structures: ‘<b>jkvt</b>’, ‘<b>ss</b>’, ‘<b>spikeTimesCell</b>’, and ‘<b>trI</b>’. The structure ‘<b>ss</b>’ would be most relevant at least for our initial work. Thus, I’ll explain each field in ‘<b>ss</b>’. ‘<b>ss</b>’ consists of 31 fields, of which length equals to the total number of trials in the recording session (e.g., 193 total trials in ‘WR40_081919’).The field ‘<b>trialType</b>’ classifies trials into: ‘sp’: a success trial. ‘ps’: an error trial (error made by pushing instead of pulling the joystick). ‘pmpp’: an error trial (error made by a premature response before the cue). ‘to’: a time out trial (no reach was made within the set time limit). ‘<b>timeAlign</b>’ indicates time in milliseconds to which the neural and behavioral data are aligned to. ‘<b>evtAlign</b>’ indicates the type of event to which data are aligned to. A success trial is aligned to the reach start (‘rStart’).  Other error trials (‘ps’ and ‘pmpp’) are also aligned to ‘rStart’. A time out trial is aligned to the cue onset (‘trJsReady’).  ‘<b>rEnd</b>’ indicates the time each trial ended by completing a pull (or an error, time out). ‘<b>spkTimeBins</b>’ indicates time bins used to bin the neural and behavioral data. The width of the time bin is 20 ms. The range is -1 to 2 sec (20 ms x 150 bins) relative to ‘timeAlign’.  ‘<b>unitTimeBCtx</b>’ is the unit-by-bin spike count matrix of the motor cortex.  ‘<b>unitTimeBStr</b>’ is the spike count matrix of the dorsal striatum. ‘<b>hTrjBfull</b>’ is the full binned hand trajectory on X (left-right), Y (forward-backward) and Z (upward-downward) axes.‘<b>hTrjB</b>’ is the binned hand trajectory (in millimeters) of which bins are aligned to the ‘spkTimeBins’. <i>Note that they are cut off at the pull stop (or commitment of an error), thus there are fewer bins than that of the spike data. However, the existing bins are temporally aligned. </i>‘<b>hVelB</b>’ is the binned hand velocity (in cm/s).  ‘<b>hInitPos</b>’ is just the estimated initial hand position (median amongst the initial bins).   ‘<b>hDistFromInitPos</b>’ is the estimated distance of each bin from the ‘hInitPos’. ‘<b>maxPullForce</b>’ is the maximum force generated in the pulling direction (negative) of each trial. Empty for error or timeout trials.   ‘<b>forceB</b>’ is the amount of force generated at each time bin. ‘<b>tPullStart</b>’ is the time when the pull started. ‘<b>tPullStop</b>’ is the time when the pull stopped. ‘<b>spkPullIdx</b>’ is the logical index marking spike time bins corresponding to pulling. ‘<b>spkRchIdx</b>’ is the logical index marking spike time bins corresponding to reaching. ‘<b>rchSpeed1ms</b>’ is the reach speed (cm/s) estimated at 1-ms time resolution.‘<b>maxRchSpeed</b>’ is the maximum speed (cm/s) of hand movement of  the trial.‘<b>maxRchSpeedXYZ</b>’ is the maximum speed (cm/s) of hand movement per each axis. ‘<b>hTrjBfullP1</b>’ is the full hand trajectory (not aligned with the spike matrix) upto the point of the pull start. ‘<b>jTrjB</b>’ is the binned joystick trajectory aligned with the spike matrix (‘unitTimeB*’) and hand trajectories (‘<b>hTrjB</b>’).  ‘<b>jsXYbot</b>’ is the joystick position at the target location. ‘<b>rchAngDeg</b>’ is the reach angle estimated on the 2-d (X-Y) trajectories from the reach onset to the pull onset. ‘<b>tLaserStart</b>’ is the time of laser onset (if any), that silences the activity of many M1 neurons.  ‘<b>tLaserStop</b>’ is the time of laser offset.  ‘<b>spkTimeBlaserI</b>’ is the logical index indicating spike time bins with the laser on.  ‘<b>blNumber</b>’ indicates the block ID. There are up to 8 blocks. Block#1&5: Left position/Low torqueBlock#2&6: Left position/High torqueBlock#3&7: Right position/Low torqueBlock#4&8: Right position/High torque‘<b>blType</b>’ describes the type of each block. ‘<b>blShiftLogic</b>’ is just the logical index indicating trials where a block shift occurred. The structure ‘<b>jkvt</b>’ contains more raw behavioral variables, I’ll provide details as needed in the future. The structure ‘<b>spikeTimesCell</b>’ contains information about each recorded unit and their spike times. This will be useful if we want to generate PSTHs with different parameters.  <br><b>Code</b>This is the git repository with all the code we used for data preprocessing and analysis. We will provide any details as needed.  https://github.com/jup36/MatlabNeuralDataPipeline