@@ -225,9 +225,9 @@ function BARR_PSTH(plotSave,useState)
225225 if plotRips
226226 % PSTH_ripples = computePSTH(ripples,spikes,'duration',1,'plots', false,'alignment','peaks','zscorePlot',false);
227227% [PSTH_ripples,PSTH_t] = makePETH(spikes,ripples.timestamps(:,1),[-3 3]);
228- [PSTH_ripples , PSTH_t ] = manualPSTH(spikes , ripples .timestamps(: ,1 ),[-1 ,1 ],1 / 1000 );
228+ [PSTH_ripples , PSTH_t ] = manualPSTH(spikes , ripples .timestamps(: ,1 ),[-1 ,1 ],1 / 100 ); % was 1/1000
229229 if runTags
230- warning(' NOT ADJUSTED TO NEW DIMENSIONS' );
230+ % warning('NOT ADJUSTED TO NEW DIMENSIONS');
231231% for k = 1:size(PSTH_ripples,1)
232232% if ((max(PSTH_ripples(k,91:111))-max(PSTH_ripples(k,1:71))) > 1.5*std(PSTH_ripples(k,:)))
233233% cell_metrics.tags.Pr = [cell_metrics.tags.Pr spikes.UID(k)];
@@ -248,9 +248,9 @@ function BARR_PSTH(plotSave,useState)
248248 end
249249 % PSTH_bar = computePSTH(HSEnrem,spikes,'duration',1,'plots', false,'alignment','peaks','zscorePlot',false);
250250% [PSTH_bar,PSTH_t] = makePETH(spikes,HSEuse.timestamps(:,1),[-3 3]);
251- [PSTH_bar , PSTH_t ] = manualPSTH(spikes , HSEuse .timestamps(: ,1 ),[-1 1 ],1 / 1000 );
251+ [PSTH_bar , PSTH_t ] = manualPSTH(spikes , HSEuse .timestamps(: ,1 ),[-1 1 ],1 / 100 ); % was 1/1000
252252 if runTags
253- warning(' NOT ADJUSTED TO NEW DIMENSIONS' );
253+ % warning('NOT ADJUSTED TO NEW DIMENSIONS');
254254% for k = 1:size(PSTH_bar,1)
255255% if (mean(PSTH_bar(k,1001:2001))-mean(PSTH_bar(k,1:100))) > 0.3
256256% cell_metrics.tags.Pb = [cell_metrics.tags.Pb spikes.UID(k)];
@@ -414,7 +414,7 @@ function BARR_PSTH(plotSave,useState)
414414shuffled_r = cumsum([shuffled_iri ]); % raly had cumsum([0; shuffled_iri]);
415415
416416[ccg_ripple_barrage_shuf ,t_ripple_barrage_shuf ] = CCG(cat(1 ,shuffled_r ,t_barrages{1 }),cat(1 ,t_ripple_id{1 },2 * t_barrage_id{1 }),' binSize' ,binsize ,' duration' ,duration ,' norm' ,' rate' );
417- figure(5 );plot(t_ripple_barrage_shuf ,ccg_ripple_barrage_shuf(: ,2 ,1 ),' r' );hold on ;title(' ccg barr-SWR' ); yline(0 ,' k--' );xlim([-3 3 ]);
417+ figure(5 );plot(t_ripple_barrage_shuf ,ccg_ripple_barrage_shuf(: ,2 ,1 ),' r' );hold on ;title(' ccg barr-SWR shuffle ' ); yline(0 ,' k--' );xlim([-3 3 ]);
418418 saveas(gcf ,[plotSave ' CCG_shuff.png' ]);
419419 % Old jitter start
420420% for it = 1:10000
0 commit comments