Giter VIP home page Giter VIP logo

variant_search's Introduction

variant_search_app

Web application (backed by RESTful microservices and PostgreSQL DB) capable of querying genomic variants by Gene Name (e.g. BRCA1, CRY1, etc.) and reporting the information via an interactive results table.

Installation

Dependencies:

  • PostgreSQL (>= 9.6)
  • Python2.7 (Flask=0.12.2, psycopg2==2.7.3.2)
  • jQuery, jQuery UI, MaterializeCSS, DataTables

Step 1: Clone repository:

git clone https://github.com/autovivification/variant_search.git
cd variant_search

Step 2: Initialise python virtualenv and install necessary dependencies:

$ virtualenv -p /usr/local/bin/python2 venv
$ . venv/bin/activate

(venv)$ pip install -r requirements.txt

Step 3: Initialize empty PostgreSQL database using schema defined in variant_search_db/schema.sql:

(venv)$ psql -U postgres -d postgres -f variant_search_db/schema.sql

Step 4: Execute database loading script, which downloads the variant_results.tsv dataset from Clinvitae and uses it to build the database:

(venv)$ python -m variant_search_db.build

Step 5: Start the Flask server:

(venv)$ python runserver.py

Usage

Flask webapp accessible at http://localhost:5000/

REST API endpoints (Flask routes) can be accessed as follows:

Tests

Backend:

(venv)$ python -m variant_search_app.tests

variant_search's People

Contributors

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