Skip to content

xcoo/ngsv-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGSV Console

Web console for accessing database of NGSV.

Requirements

  • Python (v2.7)
    • ngsv-tools
    • Flask
    • Flask-SQLAlchemy
    • gevent
    • gevent-websocket
    • Celery
    • SQLAlchemy
  • MySQL
  • RabbitMQ

Installation

1. Install ngsv-tools

$ git clone [email protected]:xcoo/ngsv-tools.git
$ cd ngsv-tools
$ python setup.py install

2. Create database

NGSV Console cannot create database. First, create database using ngsv-tools.

$ ngsv initdb [--dbuser DBUSER] [--dbpassword DBPASSWORD]

3. Setup database

Setup configuration.

$ cp config/ngsv.ini.example config/ngsv.ini
[db]
host=mysql_host
user=mysql_user
password=mysql_password
db_name=ngsv

[console]
debug=False
testing=False

upload_dir=/path/to/upload_dir/
upload_dir_url=http://example.com/upload_files/

host=example.com

Start MySQL and RabbitMQ.

Start Celery.

$ celery worker --app=ngsvconsole.taskserver.celery -l info

Start web server

$ ./run.py --wsgi

Browse http://localhost:5000. And upload bam/bed files.

4. Load data of human genome

You cannot load human genome data into database on NGSV Console. Load cytobands and refgenes into MySQL database by the following commandline ngsvtools.

$ ngsv loadcytoband [--dbuser USER] [--dbpassword PASSWORD]
$ ngsv loadrefgene [--dbuser USER] [--dbpassword PASSWORD]

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Web console for accessing database of NGSV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published