Skip to main content

Store quality control metrics for cases in Clinical Genomics

Project description

Maven

Maven: "one who is experienced or knowledgeable."

This repository holds the software interacting with the maven database. Maven is currently a work in progress.

Aims

The maven database will be used to store quality metrics for cases and their analysis that come through Clinical Genomics.

Developing Maven

Steps to start developing on Maven locally:

  1. Clone the repo
    git clone https://github.com/Clinical-Genomics/maven
    
  2. Create a working environment

2a. Create a virtual python environment in the directory

# Go into the directory
cd ./maven
# Create a virtual environment
python3 -m venv maven
# Activate the virtual environment
source venv/bin/activate
# Install packages
poetry install

2b. If you are using pycharm setup a poetry interpreter

  1. Install a mongodb client locally (for now) follow steps outlined here

  2. Start a mongo server locally that runs the database

       brew services start mongodb-community@7.0
    
    • to stop the service when wanted
    brew services stop mongodb-community@7.0
    
  3. To establish a connection to the database with FastApi and uvicorn run:

python3 -m uvicorn --reload --app-dir ./api main:app
  • If this step worked you should see "Connected to database." in the terminal
  1. To view the database in Compass

  2. Alternatively to the steps above one can also run maven using docker 7a. Install docker and start the docker application: https://docs.docker.com/engine/install/

    • After step 1
    cd ./maven
    docker compose up
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cg_maven-0.1.6.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

cg_maven-0.1.6-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page