Giter Club home page Giter Club logo

random_dot_motion's Introduction

Random dot motion control center

Welcome to the random dot motion control center!

This set of python files provides a simple and easy-to-use toolbox for displaying random dot motion stimuli. It comes with a convenient graphical user interface where important stimulus features, such as coherence, dot lifetime, or motion direction, can be setup in real-time. The framework is designed in such a way that it is expandable with additional parallel modules. For example, one might add a module that tracks the position and orientation of a freely swimming larval zebrafish or a freely walking Drosophila, and then make certain stimulus features dependent on these measured behavioral features.

The display of visual stimuli is based on the python-friendly gaming engine Panda3D. I use vertex shaders to move and resize dots. While Panda3D generally supports all platforms, I did not manage to use shaders on MacOS. Windows and Linux should work.

Installation

Install the latest version of Python 3. I am using the Anaconda distribution.

To install Anaconda, download the installer from the Anaconda website. Then go to the Anaconda Prompt and create a new environment:

conda create --name py37 --channel conda-forge python=3.7
conda activate py37
conda install -c conda-forge scipy pyqt
pip install panda3d

Get the source code from my github repository and start the graphical user interface:

git clone https://github.com/arminbahl/random_dot_motion
cd random_dot_motion
python start_gui.py

If you prefer a proper developer environment for editing and running code, I suggest PyCharm.

Once you start the program, you should see two windows, one displaying the visual stimulus and one that controls the relevant features of the stimulus. Example image

If you have questions or suggestions, please let me know: [email protected]

References

  1. Bahl, A., and Engert, F. (2020). Neural circuits for evidence accumulation and decision making in larval zebrafish. Nat. Neurosci. 23, 94–102.
  2. Newsome, W.T., and Paré, E.B. (1988). A selective impairment of motion perception following lesions of the middle temporal visual area (MT). J. Neurosci. 8, 2201–2211.

random_dot_motion's People

Contributors

steathy-spikes avatar

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.