Git Product home page Git Product logo

retinotopy-mapper's Introduction

retinotopy-mapper package

Code for retinotopic mapping of rat visual cortex using wide-field imaging. Stimulus presentation, data acquisition, and data processing uses custom Python code. All software developed for imaging experiments in the Cox Lab, Harvard University.

NOTE: Current (final) version in cleanup branch.

Basic Setup

Install anaconda. Then, create the conda environment (python2.7)

	conda create env -f retino-opencv.yml
	source activate retinodev

After Installing:

  1. Setup monitor.

    python setupMonitor.py
    
  • This will prompt you for information about the monitor. Input the info for each question directly in the command line.
  • You will be prompted to save at the end.
  1. Run a stimulus protocol with the selected monitor.

    python PROTOCOL.py --monitor='MONITORNAME'
    

    If you forget which monitors have been set on the computer, you can use the -h flag to get the list of saved monitor configs:

    python PROTOCOL.py -h
    
  2. Neural data will be ignored with the --no-camera option. To save image data, add the --save-images option. If no pvapi camera is found, the default is the built-in camera on the computer. For now, use the png output-format option:

    python PROTOCOL.py --monitor='MONITOR-NAME' --save-images --output-format='png' --output-path='DATA-DIR-NAME'
    
  3. For more options, their uses, and default settings, go to help.

    python PROTOCOL.py -h
    

Sources and Contributors

This package uses a phase-encoding paradigm adapted from a number of different studies in mouse visual cortex (1-4). Stimulus parameters were determined experimentally for imaging in rats. In addition to custom code based on previously published methods, we found additional guidance from zhuangjun1981/retinotopic_mapping to be particularly helpful for area segmentation (2-4).

Code contributors Juliana Rhee (julianarhee) Cesar Echavarria (cechava) David Cox (davidcox)

Tips and Troubleshooting:

  • Error with 'gcc' during pygame install:

      export CC='/usr/bin/gcc' 
    
  • Import error with 'cv2' module:

      conda install opencv
    
  • fwpy should go somewhere on your path. You can start the psychopy UI by calling

      fwpy `which psychopyApp.py`
    

References

  1. Kalatsky VA, Stryker MP (2003) New paradigm for optical imaging: temporally encoded maps of intrinsic signal. Neuron 38:529-545.

  2. Garrett ME, Nauhaus I, Marshel JH, Callaway EM (2014) Topography and areal organization of mouse visual cortex. J Neurosci 34:12587-12600.

  3. Juavinett AL, Nauhaus I, Garrett ME, Zhuang J, Callaway EM (2017). Automated identification of mouse visual areas with intrinsic signal imaging. Nature Protocols. 12: 32-43.

  4. Zhuang J, Ng L, Williams D, Valley M, Li Y, Garrett M, Waters J (2017) An extended retinotopic map of mouse cortex. eLife 6: e18372.

retinotopy-mapper's People

Contributors

davidcox avatar julianarhee avatar

Watchers

 avatar

Forkers

coxlab

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.