Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 2.39 KB

README.md

File metadata and controls

47 lines (38 loc) · 2.39 KB

GlobalLocalOddballs stimulus generation code

This repository contains the original code used to generate the stimuli for the GlobalLocalOddballs project, an Allen Institute for Brain Science OpenScope project.  

The GlobalLocalOddballs experiment was conceptualized by Jake Westerberg (Vanderbilt University), André Bastos (Vanderbilt University), and Alex Maier (Vanderbilt University). The stimuli were coded by [Jake Westerberg].

The experiment details, analyses, and results are forthcoming.  

Installation

Dependencies:

  • Windows OS (see Camstim package)
  • python 2.7
  • psychopy 1.82.01
  • camstim 0.2.4  

Camstim 0.2.4:

  • Built and licensed by the Allen Institute.
  • Written in Python 2 and designed for Windows OS (requires pywin32).
  • Pickled stimulus presentation logs are typically saved under user/camstim/output.  

Installation with Anaconda or Miniconda:

  1. Navigate to repository and install conda environment.
    conda env create -f openscope-glo-stim.yml
  2. Activate the environment.
    conda activate openscope-glo-stim
  3. Install the AIBS camstim package in the environment.
    pip install camstim/.
  4. Download and install AVbin for your OS.
     

Scripts

You can try out a test script by navigating into the test-scripts folder and running any of the example file: python cohort-1-habituation-5min-drifting.py  

Log files

  • Pickled stimulus presentation logs are typically saved under user/camstim/output.
  • Sweep parameters are under a few keys of ['stimuli'][n], where n is the stimulus number.
  • Stimulus parameters are in the following dictionary: ['stimuli'][0]['stimParams'] or ['stimuli'][0]['stim_params'].
     

Additional notes

  • On some computers, the black screen that should intervene each sequence appears as a white screen instead. Change the color_inversion value to True in the SESSION_PARAMS at the top of the .py file to fix.