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.

readme_code.md 2.4 KB

Code organization

  1. Load Subject Data from stored files (in data folder, make sure to clone the repository folders as they are)

     subj1Data=getSubjectData(1);
     subj2Data=getSubjectData(2);
    
  2. Access behavioral and experimental variables

     subj1bi=getBehavioralInfos(subj1Data);
     subj2bi=getBehavioralInfos(subj2Data);
    
  3. Access eye data between time epochs for given session

     'preoffer1','offer1','delay1','offer2','delay2',
     'startfix','choicego','choicesacc','choicemade'.
    

    e.g. Subject1, Session 1, 'offer1' to 'delay1'

    subj1et=getEyeTracks(subj1Data,1,'offer1','delay1');
    
  4. Access neural data between time epochs for given session e.g. Subject1, session1,

    subj1ss=getSpikeSequences(subj1Data,1,'offer1','delay1');
    
  5. Access behavioral data pooled in both subjects, all sessions

    subjsData(1).sbdata=subj1Data;
    subjsData(2).sbdata=subj2Data;
    poolstackvars=getPoolStackVars(subjsData);
    
  6. Access eye data pooled in both subjects (sessions x task epochs)

    subjsData(1).sbdata=subj1Data;
    subjsData(2).sbdata=subj2Data;
    poolstackepos=getPoolStackEyePos(subjsData);
    
  7. Access neural data pooled in both subjects (sessions x task epochs)

     subjsData(1).sbdata=subj1Data
     subjsData(2).sbdata=subj2Data;
     poolstackspks=getPoolStackSpks(subjsData);
    
  8. Access eye and neural data pooled in both subjects, sessions (x task epochs)

     pooltweyepos=getTimewinsPoolEyePos();
     pooltwspksq=getTimewinsPoolSpikeSeqs();
    
  9. Run analyses in Fig.1-2 through behavioralAnalysis.m

  10. Run analyses in Fig.3 through neuralAnalysis.m,

  11. Run analyses in Fig.4 through neuralAnalysisDelayShiftAligned.m

    (related, optional: run analyses in Fig. S15 through neuralAnalysisOfferShiftAligned.m)

  12. Run analyses in Fig.5A-D through neuralAnalysisChoice.m,

  13. Run analyses in in Fig.5E-F through neuralAnalysisChoiceResiduals.m.

  14. All supplementary tables are obtained by storing results in 9-13.

  15. All supplementary figures can be obtained by minor edits to computational parameter values in 9-13.

In case of further interest, please contact corresponding author name.surname@upf.edu

Demetrio Ferro

Creative Commons BY-NC-SA 4.0 - May 2024