Giter Club home page Giter Club logo

chemotaxis's Introduction

A simulation framework for Drosophila larvae chemotaxis in the presence of an odor gradient. This framework is an implementation of the model described by Davies et al., and also extends that model with new mechanisms from Schulze et al.

Paper with the original model that we are extending: A Model of Drosophila Larva Chemotaxis
Paper with the extensions (detailed concentration detection mechanisms): Dynamical feature extraction at the sensory periphery guides chemotaxis

Setting Up

The simulation is written for Python 3. It depends on multiple packages. To easily install the packages, we recommend that you use either Anaconda for Python 3 or pip. If you choose to use pip, we highly recommend you use virtualenv for clean package installations.

The first step is to clone the repository:

git clone https://github.com/elykcoldster/chemotaxis.git
cd chemotaxis

Then continue setting up using option (1) or (2), as discussed above:

(1) With Anaconda

Use conda to create a new environment with all the required packages:

conda create -n chemotaxis_env --file requirements.txt

(2) With pip + virtualenv

NOTE: These instructions are written for Ubuntu, however they should work with minimal modifications for other operating systems. Create and activate a virtual environment:

virtualenv venv
source venv/bin/activate

Install all of the required packages for the simulator:

pip install -r pip_requirements.txt

If you are on Ubuntu, you may need to install python3-tk:

sudo apt-get install python3-tk

Running

To start the simulator, simply use:

python main.py

This will begin the interactive simulator, where you can give it commands. To view a list of commands and how to use them, use the "h" command.

Over the course of your experiments, you may find it cumbersome to type the same commands over and over again. Thus, you can place those same commands that you would normally type interactively into a file such as "experiment.in", with each command on a separate line, and run the simulator like so:

python main.py -f experiment.in

This will start the simulator and run all of the commands in "experiment.in"

chemotaxis's People

Contributors

amiralavi avatar easwaranramamurthy avatar kairukuma avatar

Watchers

 avatar  avatar  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.