MouseDB

A web-based application for storage and organization of data regarding experimental animals
Download

MouseDB Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Dave Bridges
  • Publisher web site:
  • http://github.com/davebridges/

MouseDB Tags


MouseDB Description

A web-based application for storage and organization of data regarding experimental animals MouseDB is a data analysis and management system for experimental animals. Source code is freely available via Github (through the BSD License please see LICENSE file or http://www.opensource.org/licenses/bsd-license.php), and collaboration is encouraged. For specific details please contact Dave Bridges via Github. MouseDB uses a web interface and a database server to store information and a web interface to access and analyse this information. The standard setup is to use MySQL as the database and Apache as the webserver, but this can be modified if necessary. The software was written using Django, which itself is based on the Python programming language. Please see www.djangoproject.com and www.python.org for more information.Installation:Configuration:MouseDB requires both a database and a webserver to be set up. Ideally, the database should be hosted separately from the webserver and MouseDB installation, but this is not necessary, as both can be used from the same server. If you are using a remote server for the database, it is best to set up a user for this database that can only be accessed from the webserver. If you want to set up several installations (ie for different users or different laboratories), you need separate databases and MouseDB installations for each. You will also need to set up the webserver with different addresses for each installation.Software Dependencies:1. **MouseDB source code**. Download from one of the following: a. http://github.com/davebridges/mousedb/downloads for the current release b. http://github.com/davebridges/mousedb for the source code via GitDownloading and/or unzipping will create a directory named mousedb. You can update to the newest revision at any time either using git or downloading and re-installing the newer version. Changing or updating software versions will not alter any saved data, but you will have to update the localsettings.py file (described below).2. **Python**. Requires Version 2.6, is not yet compatible with Python 3.0. Download from http://www.python.org/download/.3. **Django**. Download from http://www.djangoproject.com/download/. MouseDB currently requires at least Django 1.2.4. **Database software**. Typically MySQL is used, but PostgreSQL, Oracle or SQLite can also be used. You also need to install the python driver for this database (unless you are using SQLite, which is internal to Python 2.5+). See http://docs.djangoproject.com/en/dev/topics/install/database-installation - Django Database Installation Documentation for more information.Database Setup1. Create a new database. You need to record the user, password, host and database name. If you are using SQLite this step is not required.2. Go to localsettings_empty.py and edit the settings: * ENGINE: Choose one of 'django.db.backends.postgresql_psycopg2','django.db.backends.postgresql', 'django.db.backends.mysql', 'django.db.backends.sqlite3', 'django.db.backends.oracle' depending on the database software used. * NAME: database name * USER: database user * PASSWORD: database password * HOST: database host3. Save this file as localsettings.py in the main MouseDB directory.Web Server SetupYou need to set up a server to serve both the django installation and saved files. For the saved files. I recommend using apache for both. The preferred setup is to use Apache2 with mod_wsgi. See http://code.google.com/p/modwsgi/wiki/InstallationInstructions for instructions on using mod_wsgi. The following is a httpd.conf example where the code is placed in /usr/src/mousedb::Alias /robots.txt "usr\src\mousedb\src\media\robots.txt"Alias /favicon.ico "usr\src\mousedb\media\srcfavicon.ico"Alias /mousedb-media "usr\src\mousedb\src\media"< Directory "usr\src\mousedb\src" > Order allow,deny Allow from all< /Directory >WSGIScriptAlias /mousedb "usr\src\mousedb\src\apache\django.wsgi"Then open up the mousedb/src/apache/django.wsgi file and replace the location of the mousedb directory on the sys.path.append line.If you want to restrict access to these files, change the Allow from all directive to specific domains or ip addresses (for example Allow from 192.168.0.0/99 would allow from 192.168.0.0 to 192.168.0.99)Final Configuration and User SetupGo to a command prompt, navigate to inside the mousedb/src directory and enter the following to get to a python prompt:: python manage.py shellGo to servername/mousedb/admin/groups/group/1 and name your research group and select a license if desiredGo to servername/mousedb/admin/auth/users/ and create users, selecting usernames, full names, password (or have the user set the password) and then choose group permissions.ConceptsData storage for MouseDB is separated into packages which contain information about animals, and information collected about animals. There is also a separate module for timed matings of animals. This document will describe the basics of how data is stored in each of these modules.Animal ModuleAnimals are tracked as individual entities, and given associations to breeding cages to follow ancestry, and strains.AnimalMost parameters about an animal are set within the animal object. Here is where the animals strain, breeding, parentage and many other parameters are included. Animals have foreignkey relationships with both Strain and Breeding, so an animal may only belong to one of each of those. As an example, a mouse cannot come from more than one Breeding set, and cannot belong to more than one strain.Backcrosses and GenerationsFor this software, optional tracking of backcrosses and generations is available and is stored as an attribute of an animal. When an inbred cross is made against a pure background, the backcross increases by 1. When a heterozygote cross is made, the generation increases by one. As an example, for every time a mouse in a C57/BL6 background is crossed against a wildtype C57/B6 mouse, the backcross (but not the generation) increases by one. For every time a mutant strain is crosses against itself (either vs a heterozygote or homozygote of that strain), the generation will increase by one. Backcrosses should typically be performed against a separate colony of purebred mouse, rather than against wild-type alleles of the mutant strain.Breeding CagesA breeding cage is defined as a set of one or more male and one or more female mice. Because of this, it is not always clear who the precise parentage of an animal is. If the parentage is known, then the Mother and Father fields can be set for a particular animal.StrainsA strain is a set of mice with a similar genetics. Importantly strains are separated from Backgrounds. For example, one might have mice with the genotype ob/ob but these mice may be in either a C57-Black6 or a mixed background. This difference is set at the individual animal level.The result of this is that a query for a particular strain may then need to be filtered to a specific background.Data ModuleData (or measurements) can be stored for any type of measurement. Conceptually, several pieces of data belong to an experiment (for example several mice are measured at some time) and several experiments belong to a study. Measurements can be stored independent of experiments and experiments can be performed outside of the context of a study. It is however, perfered that measurements are stored within an experiment and experiments are stored within studies as this will greatly facilitate the organization of the data.StudiesIn general studies are a collection of experiments. These can be grouped together on the basis of animals and/or treatment groups. A study must have at least one treatment group, which defines the animals and their conditions.ExperimentsAn experiment is a collection of measurements for a given set of animals. In general, an experiment is defined as a number of measurements take in a given day.MeasurementsA measurement is an animal, an assay and a measurement value. It can be associated with an experiment, or can stand alone as an individual value. Measurements can be viewed in the context of a study, an experiment, a treatment group or an animal by going to the appropriate page.Timed Matings ModuleTimed matings are a specific type of breeding set. Generally, for these experiments a mating cage is set up and pregnancy is defined by a plug event. Based on this information, the age of an embryo can be estimated. When a breeding cage is defined, one option is to set this cage as a timed mating cage (ie Timed_Mating=True). If this is the case, then a plug event can be registered and recorded for this mating set. If the mother gives birth then this cage is implicitly set as a normal breeding cage.Groups ModuleThis app defines generic Group and License information for a particular installation of MouseDB. Because every page on this site identifies both the Group and data restrictions, at a minimum, group information must be provided upon installation (see installation instructions). Requirements: · Python


MouseDB Related Software