Skip to main content

Create and Validate Gene Signatures

Project description

Build Status Documentation Status PyPI The uncompromising python formatter

Gene signatures are sets of genes derived from gene expression data, which identify a certain tissue, cell type, pathway, etc. Pygenesig provides a framework to create and validate such signatures. The package is easily extensible to add new methods for signature creation and testing.

Getting started

Please refer to the documentation, in particular the sections

If you want to implement own methods for creating and testing signatures, please take a look at the

Installation

You need to have Python 3.7 or newer installed on your system. Some methods for creating or testing signatures additionally require R. If you don’t have Python installed, we recommend installing Miniforge.

There are several alternative options to install pygenesig:

  1. Install pygenesig in a self-contained conda environment:

    This is the most reliable option to make both R and Python work. Make sure you have the conda-forge and the bioconda channels set-up with the correct priorities as described in the Bioconda documentation.

    # use `mamba` instead of `conda` for more speed
    mamba create -n pygenesig python=3.8 pip bioconductor-edger bioconductor-bioqc
    conda activate pygenesig
    pip install pygenesig
  2. Install pygenesig via pip and R packages manually

    pip install pygenesig

    Then, in an R:

    install.packages("BiocManager")
    BiocManager::install(c("edgeR", "BioQC"))

    Usually, if R is in your PATH, rpy2 automatically detects your R installation. If you get an error message while importing pygensig, try setting the R_HOME environment variable before importing pygenesig:

    import os
    os.environ["R_HOME"] = "/usr/lib/R"
    import pygenesig
  3. Install the latest development version from GitHub:

    pip install git+https://github.com/grst/pygenesig.git@master

    You’ll need to separately install R packages as described above.

Release notes

See the release section.

Contact

Please use the issue tracker.

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

pygenesig-0.2.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

pygenesig-0.2.1-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file pygenesig-0.2.1.tar.gz.

File metadata

  • Download URL: pygenesig-0.2.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for pygenesig-0.2.1.tar.gz
Algorithm Hash digest
SHA256 47491090b462408bd3aea2b140d579b272c0aa88a8537b1d003fcca4a1092094
MD5 50536ad0b006783ebafe7e85fc3b6115
BLAKE2b-256 16891dd9f5537dd35bd0df2ddff978467a004cc08b5657cff3d8a40c94fc485e

See more details on using hashes here.

File details

Details for the file pygenesig-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pygenesig-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for pygenesig-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 259a5430a72e30dfafe9475349057b68d72a89a4024b79c50f9b4945e7b47238
MD5 970bcedf1c93c587633f71e60d74288e
BLAKE2b-256 d3766e0bde6b85454f612a0a251d7eb7639b1aa827f321090ba5a41ca5f47a22

See more details on using hashes here.

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