Skip to content

uc-cdis/peregrine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

583a6c2 · Mar 10, 2025
Sep 23, 2024
Nov 18, 2024
Nov 18, 2024
Mar 20, 2023
Mar 9, 2023
Nov 18, 2024
May 24, 2024
Dec 19, 2017
Jul 27, 2018
Feb 13, 2023
Nov 18, 2024
Mar 10, 2025
Feb 20, 2019
Nov 17, 2017
Nov 17, 2017
Nov 17, 2023
Nov 18, 2024
Mar 10, 2025
Mar 10, 2025
Mar 26, 2020
Mar 7, 2019

Repository files navigation

Peregrine

Build Status Coverage Status

Query interface to get insights into data in Gen3 Commons

API Documentation

OpenAPI documentation available here.

YAML file for the OpenAPI documentation is found in the openapi folder (in the root directory); see the README in that folder for more details.

Developer Setup

Run

poetry install
./run.py

Test

python bin/setup_test_database.py --host postgres
mkdir -p tests/resources/keys; cd tests/resources/keys; openssl genrsa -out test_private_key.pem 2048; openssl rsa -in test_private_key.pem -pubout -out test_public_key.pem; cd -

If needed, set environment variables to point to a specific Postgres instance.

export GDC_PG_HOST=postgres
export GDC_PG_USER=postgres
export GDC_PG_PASSWORD=""

Run tests.

poetry run pytest -vv --cov=peregrine --cov-report xml tests

Quickstart with Helm

You can now deploy individual services via Helm! Please refer to the Helm quickstart guide HERE (https://github.com/uc-cdis/peregrine/blob/master/docs/quickstart_helm.md)