Skip to main content

Pygenesig, a framework to generate and validate tissue-specific gene signatures.

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 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.

Metadata

Release files for pygenesig 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygenesig 0.2.2
File Size Uploaded
pygenesig-0.2.2.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygenesig 0.2.2
File Interpreter ABI Platform
pygenesig-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 57.2 kB

Release files / pygenesig-0.2.2.tar.gz

Download URL pygenesig-0.2.2.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
57f54572a2e91ddf04303a570868c0dd3354418ca04d7a29afd3233700edc1dd
BLAKE2b-256 checksum
How to use checksums
e6af018dcbdd43b255987de9ca337ea34b1a882a5c2add2fc59d6b99dbf708e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / pygenesig-0.2.2-py3-none-any.whl

Download URL pygenesig-0.2.2-py3-none-any.whl
Size 31.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f94c89acdeed6859b718e544d78e2250c6e3451ca6ff35a91fea6e33cc2d0e1
BLAKE2b-256 checksum
How to use checksums
6d7169bc92b2fe3d60255389d613f1ce7fec99822c0df29d24b807a2848862f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page