buzsakilab / buzcode

Code for internal lab sharing - polishing has started but is by no means complete
http://www.buzsakilab.com/
GNU General Public License v3.0
119 stars 128 forks source link

about calculation of theta-sequence #240

Closed gmbcrazy closed 6 years ago

gmbcrazy commented 6 years ago

Hi, @DavidTingley

I'm recently using your decoding code. There's two "fields" in some of the structure variables, which I don't really understand.

one is "spike.spindice", I wonder if spikes.spindices(:,1) is the timestamps of spikes and spikes.spindices(:,2) is the cellID of corresponding spikes?

the other one is : fields{behavior.events.trialConditions(t)}{cellIDs(cell)}{1}.COM What is this?

Best, LU

DavidTingley commented 6 years ago

@dlevenstein for spindice description the .COM field is the center of mass of the place field. It is a weighted mean of the bins within the field start/stop

dlevenstein commented 6 years ago

Yup, spikes.spindices(:,1) is the timestamps of spikes and spikes.spindices(:,2) is the cellID of the corresponding spikes.

the information is redundant with spikes.times, but is in a form that is useful for some operations/plotting/etc.

gmbcrazy commented 6 years ago

Thank you so much guys. @DavidTingley @dlevenstein