Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

getPoolStackSpks.m 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. function poolstackspks=getPoolStackSpks(subjsData)
  2. opts = struct('WindowStyle','modal','Interpreter','none','Default','No');
  3. answer = questdlg('This requires available memory at runtime. Are you sure to continue?','Memory Warning','Yes','No',opts);
  4. if strcmpi(answer,'No'); error('Aborted getting pool stack eye position (consider loading getPoolStackSpksOutput.mat).'); end
  5. disp('Loading spike data...');
  6. subject1=subjsData(1).sbdata;
  7. subject2=subjsData(2).sbdata;
  8. twLabels={'preoffer1','offer1','delay1','offer2','delay2','startfix','choicego','choicesacc','choicemade'};
  9. for tw=1:8
  10. currtws1s1gss=getSpikeSequences(subject1,1,twLabels{tw},twLabels{tw+1});
  11. currtws1s2gss=getSpikeSequences(subject1,2,twLabels{tw},twLabels{tw+1});
  12. currtws1s3gss=getSpikeSequences(subject1,3,twLabels{tw},twLabels{tw+1});
  13. currtws1s4gss=getSpikeSequences(subject1,4,twLabels{tw},twLabels{tw+1});
  14. currtws2s1gss=getSpikeSequences(subject2,1,twLabels{tw},twLabels{tw+1});
  15. currtws2s2gss=getSpikeSequences(subject2,2,twLabels{tw},twLabels{tw+1});
  16. currtws2s3gss=getSpikeSequences(subject2,3,twLabels{tw},twLabels{tw+1});
  17. currtws2s4gss=getSpikeSequences(subject2,4,twLabels{tw},twLabels{tw+1});
  18. s1s1poolstackspks(tw).spksq = currtws1s1gss.spikeseqs;
  19. s1s2poolstackspks(tw).spksq = currtws1s2gss.spikeseqs;
  20. s1s3poolstackspks(tw).spksq = currtws1s3gss.spikeseqs;
  21. s1s4poolstackspks(tw).spksq = currtws1s4gss.spikeseqs;
  22. s2s1poolstackspks(tw).spksq = currtws2s1gss.spikeseqs;
  23. s2s2poolstackspks(tw).spksq = currtws2s2gss.spikeseqs;
  24. s2s3poolstackspks(tw).spksq = currtws2s3gss.spikeseqs;
  25. s2s4poolstackspks(tw).spksq = currtws2s4gss.spikeseqs;
  26. end
  27. for tw=1:8
  28. for sn=1:4
  29. poolstackspks(sn,tw).spksq =eval(['s1s' num2str(sn) 'poolstackspks(tw).spksq']);
  30. poolstackspks(sn+4,tw).spksq=eval(['s2s' num2str(sn) 'poolstackspks(tw).spksq']);
  31. end
  32. end
  33. end