An Online Platform for Genetic & Phenotype Data
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.
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.
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:
- My Patient Page: http://localhost:8888/my_patients
- Individual Page: http://localhost:8888/individual/PH00008258
- Variant Page: http://localhost:8888/variant/22-38212762-A-G
- HPO Page: http://localhost:8888/hpo/HP:0000478
- Gene Page: http://localhost:8888/gene/ENSG00000119685
Rebuild, if you change Dockerfile
or requirements.txt
docker compose up --build [--no-cache]
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.
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'