Skip to main content

Total proteomics differential analysis models and auxilaries for Corpus

Project description

corpus-clavicle

This is a python package used to provide models and auxilaries for the corpus package for dealing with total proteomics data

Installation

pip install django-postgres-extra corpus-clavicle psycopg2 

Usage

import os
INSTALLED_APPS = [
    #...
    'django.contrib.postgres',  # Required for 'psqlextra
    'psqlextra',
    'clavicle',
    #...
]

DATABASE_ROUTERS = ['clavicle.dbrouter.ClavicleRouter']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'db.sqlite3',
    },
    'clavicle': {
        'ENGINE': 'psqlextra.backend',
        'NAME': os.environ.get('POSTGRES_NAME', 'clavicle'),
        'USER': os.environ.get('POSTGRES_USER', 'admin'),
        'PASSWORD': os.environ.get('POSTGRES_PASSWORD', "testpostgrest"),
        'HOST': os.environ.get('POSTGRES_HOST', 'localhost'),
        'PORT': int(os.environ.get('POSTGRES_PORT', '5432')),
    }
}
python manage.py migrate --database=clavicle

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

corpus_clavicle-0.1.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

corpus_clavicle-0.1.1-py3-none-any.whl (5.1 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