Install dependencies:
- Postgres
- Node + npm
- Python and Conda
-
Clone repository:
git clone [email protected]:populationgenomics/seqr.git git checkout dev
-
Build UI
cd ui/ npm install npm run build cp dist/* ../static/ cd ..
-
Build seqr python environment
conda create -n seqr python=3.7 conda activate seqr pip install -r requirements.txt pip install -r requirements-dev.txt
-
Run migrations to set-up Postgres database
psql --host localhost -U postgres -c 'CREATE DATABASE reference_data_db'; psql --host localhost -U postgres -c 'CREATE DATABASE seqrdb'; python -u manage.py makemigrations python -u manage.py migrate python -u manage.py migrate --database=reference_data python -u manage.py check python -u manage.py collectstatic --no-input python -u manage.py loaddata variant_tag_types python -u manage.py loaddata variant_searches python -u manage.py update_all_reference_data --use-cached-omim
-
Create seqr superuser
python manage.py createsuperuser
-
Run seqr in debug mode:
python3 manage.py runserver
OR debug in VSCode with the following launch json:
{ "name": "Python: Current File", "type": "python", "request": "launch", "program": "manage.py", "args": ["runserver"], "console": "integratedTerminal" }
By default, this serves the seqr UI.
You can run the seqr UI separately with:
This will automatically proxy seqr requests to localhost:8000, so make sure you have the python server running.
cd ui
npm run start
open http://localhost:3000