Coder Social home page Coder Social logo

arm-diaz / phenopolis_genomics_browser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phenopolis/phenopolis_genomics_browser

0.0 0.0 0.0 131 MB

Python API and React frontend for the Phenopolis Genomics Browser

Home Page: https://dev-live.phenopolis.org

License: MIT License

Shell 0.99% JavaScript 35.84% Python 21.12% CSS 0.13% HTML 0.06% PLpgSQL 4.86% Dockerfile 0.04% SCSS 36.96% Procfile 0.01%

phenopolis_genomics_browser's Introduction

Phenopolis Genomics Browser 2.0

An Online Platform for Genetic & Phenotype Data

Gitter chat check_app_api

Note this is a new version of the code, the old version is here.

If you use Phenopolis Genomics Browser please cite our paper.

A description of the code setup is available here.

Setup using docker compose

Set the following environment variable in

  • public.env:
VCF_FILE=...

Where VCF_FILE can be either a local file (e.g. path/file.vcf.gz) or a remote S3 file (e.g. s3://any_remote/file.vcf.gz )

It's critical that the VCF_FILE has along its tbi file as well.

  • Create private.env and add:
AWS_SECRET_ACCESS_KEY=....
AWS_ACCESS_KEY_ID=....

Note: do not add single or double quotes around the value as they are preserved.

Build and launch the services

This will set up the database and load the demo database.

docker compose up

If one wants to rebuild fresh images, one can do:

docker compose build --no-cache # rebuild from scratch frontend and api
docker compose build --no-cache frontend # will rebuild just frontend for example

Once running, the API server should be available at http://localhost:5000 and the frontend will be available at http://localhost:8888

With the demo data the following exemplar links should work on the frontend:

Rebuild if you change dependencies

Rebuild, if you change Dockerfile or requirements.txt

docker compose up --build [--no-cache]

Importing other data into the database

Edit db/import_demo_data.sql to import the correct CSV files into the database.

If you do not wish to load any data, simply comment out all the lines within this file.

Connecting to the Postgres Database

It is possible to connect to the postgres shell as follows:

# Note change the values of the user and database name required
docker compose exec db psql --user phenopolis_api --dbname phenopolis_db

Note: When importing an AWS RDS SQL dump, you will need to create the below user before importing the SQL file:

docker compose exec db sh -c 'createuser rdsadmin -U phenopolis_api'

phenopolis_genomics_browser's People

Contributors

alanwilter avatar dvarrazzo avatar ismailm avatar logust79 avatar pontikos avatar priesgo avatar tamarkhachatryan avatar yuantian1991 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.