Giter Club home page Giter Club logo

openscope-glo-stim's Introduction

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.  

openscope-glo-stim's People

Contributors

jakewesterberg avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

alleninstitute

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.