Skip to main content

Single Sample GSEA

Project description

Single Sample GSEA analysis

Single-sample geneset enrichment analysis (ssGSEA) is a single-sample extension of the GSEA algorithm. It calculates a separate enrichment score for each sample and gene set pairing [1].

Install the latest version

pip install single_sample_gsea

Usage

>>> from single_sample_gsea import ss_gsea

>>> gene_sets = {
    "gs1": {"gene2", "gene3"},
    "gs2": {"gene1", "gene4"},
    }

>>> data = {
    "gene": ["gene1", "gene2", "gene3", "gene4", "gene5"],
    "sample-1": [1, 3, 4, 7, 32],
    "sample-2": [25, 4, 6, 18, 1],
    }
>>> data = pd.DataFrame(data).set_index("gene")

>>> ss_gsea(data, gene_sets)
               gs1       gs2
sample-1 -1.333333 -0.962974
sample-2 -1.333333  2.543214

References

[1] Barbie, D., Tamayo, P., Boehm, J. et al. Systematic RNA interference reveals that oncogenic KRAS-driven cancers require TBK1. Nature 462, 108–112 (2009). https://doi.org/10.1038/nature08460

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

single_sample_gsea-0.2.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

single_sample_gsea-0.2.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file single_sample_gsea-0.2.0.tar.gz.

File metadata

  • Download URL: single_sample_gsea-0.2.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for single_sample_gsea-0.2.0.tar.gz
Algorithm Hash digest
SHA256 47c971c449b1711ce653c2db09299f3bef720ddf137895f502f5ee0e72290026
MD5 92ac7aca4dcb034192c7e81d755b24f2
BLAKE2b-256 4045061fd428ad5ee781562118d72c9cadf1d7b7c72367d5c1e3b9e838e08e0e

See more details on using hashes here.

File details

Details for the file single_sample_gsea-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for single_sample_gsea-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f48989d2be4067ca13fbda41466dda55343906eb87d1c9407817257ca2fa7cd
MD5 6684a58b9d125243e219f78e80abf772
BLAKE2b-256 63f3d5052b22693a3f3bf27e03f45b4aaecbe31af4924b4d487f97041693e7cd

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