Coder Social home page Coder Social logo

simbrain's Introduction

SimBrain

A SimGrid-based simulator of protein spread in the brain.

Simulation of misfolded protein propagation in the brain as a distributed computing system

We model the brain as a distributed system where computing nodes represent brain regions and network links transport misfolded proteins (MPs). Nodes may produce, clear, and store MPs using similar processes as described in (Iturria-Medina et al. 2014). We leverage the SimGrid (Casanova et al. 2013) toolkit, the most advanced simulator for distributed systems, to simulate such a system. We compare our discrete-event simulation to the simulator in (Iturria-Medina et al. 2014).

Prerequisites

Instalation

  • Under Debian, Ubuntu and similar systems, you can simply get the latest version of SimGrid from your distribution. For example, simply type the following in a terminal (as root):

    apt-get install simgrid

  • You could also use the SimGrid docker container and get your code into the container, by typing the following in a terminal:

    sudo docker run --rm -it -v /path/to/local/directory:/SimBrain path/to/container/directory /bin/bash

    • example:sudo docker run --rm -it -v /home/masoud/Desktop/SimBrain:/SimBrain bigdatalabteam/simgriddocker /bin/bash

Usage

Type the following in a terminal:

  1. List files (ls)

  2. Change directory to (cd) SimBrain

  3. List files. Then, you will see the following files inside of it: simbrain.c simbrain.xml simbrain_d.xml

  4. LD_LIBRARY_PATH=/simgrid/lib

  5. export LD_LIBRARY_PATH

  6. Compile the C code using the following:

    gcc simbrain.c -I/simgrid/include -L/simgrid/lib -lsimgrid -lm -o simbrain

  7. List files. You will see the binary file has been built: simbrain simbrain.c simbrain.xml simbrain_d.xml

  8. Run the binary file using the following: ./simbrain ./simbrain.xml ./simbrain_d.xml

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

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.