Git Product home page Git Product logo

mq2_web's Introduction

MQ²_Web

Author: Pierre-Yves Chibon <[email protected]>, <[email protected]>

A web application for MQ2 to quickly visualize output from MapQTL analysis

Assuming one QTL per linkage group and using the LOD threshold set by the user. This application extracts all the QTLs detected by MapQTL, using the JoinMap map file, it finds the closest marker and finally put the number of QTLs found for each marker on the map.

This approach quickly allows you to find and visualize potential QTL hotspot in your dataset. This is particularly usefull for large QTL analysis on a large number of traits.

Get this project:

Source: https://github.com/PBR/MQ2_Web

Run it at: http://www.plantbreeding.wur.nl/mq2

Dependencies:

This project is a Flask application, as such it depends on:

Since this project is a web-interface to MQ2, it requires MQ2 installed.

Deploying this project:

Instruction to deploy this application is available on the Flask deployment documentation page.

My approach.

Below is the approach I took to deploy the instance on a local machine.

Retrieve the sources:

cd /srv/
git clone <repo>
cd MQ2_Web

Copy the configuration file:

cp mq2.cfg.sample mq2.cfg

Adjust the configuration file (upload folder, secret key...)

Don't forget to create the folder and set its right it you use a specific one, for example if you use /var/www/uploads as upload folder:

sudo mkdir /var/www/uploads
sudo chown apache:apache /var/www/uploads

Then configure apache:

sudo vim /etc/httd/conf.d/wsgi.conf

and put in this file:

WSGIScriptAlias /mq2 /var/www/wsgi/mq2.wsgi
<Directory /var/www/wsgi/>
   Order deny,allow
   Allow from all
</Directory>

Then create the file /var/www/wsgi/mq2.wsgi with:

import sys
sys.path.insert(0, '/srv/MQ2_Web')

import mq2_web
application = mq2_web.APP

Then restart apache and you should be able to access the website on http://localhost/mq2

Set the demo session:

The configuration file contains the name of a sample_session which is presented in the index page of the project to show what MQ² can do.

Create your own sample session by creating a folder in the static folder of MQ²_Web. Place on this folder the dataset you want to have in your sample session (name it input.zip) and set in the configuration file the name of the directory you created.

Testing:

This project contains unit-tests allowing you to check if your server has all the dependencies correctly set.

To run them:

python tests.py

Note that the unit-tests will fail if the upload_folder defined in mq2.cfg is not writable for the user running the tests.

Cleaning the upload folder:

Within the sources of the project is a script called clean_uploads.py which can be called from within a cron job to clean the upload directory and remove the session older than X days.

This X is set at the top of the script and can be adjusted as desired.

python clean_uploads.py --help

provides more information about the options available for this script.

Beware that this script requires the mq2.cfg file to be in the same directory as it is.

License:

This project is licensed GPLv3+.

mq2_web's People

Contributors

pypingou avatar rfinkers avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar RoelandV avatar Martijn van Kaauwen avatar dannyesselink avatar  avatar  avatar Papoutsoglou Eliana avatar  avatar Gurnoor Singh avatar  avatar  avatar

Forkers

pypingou

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.