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
Release history Release notifications | RSS feed
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.1.0.tar.gz
(11.7 kB
view details)
Built Distribution
File details
Details for the file single_sample_gsea-0.1.0.tar.gz
.
File metadata
- Download URL: single_sample_gsea-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff87fc444606e40a1b181d2bb39fe8d4591f9f1c92139dc82c97b8854e7d30d2 |
|
MD5 | 53ede0b03e5b67dc46a98b500edb300a |
|
BLAKE2b-256 | d13fa38b8713507c8530441971c8001cb85bd1a4f50302f360ba539b71b93bd9 |
File details
Details for the file single_sample_gsea-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: single_sample_gsea-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59350d2d760d37bbdc41bad7a1b23220eeae70f4fdb9b96f7790c11185c7d9a |
|
MD5 | 3d44f65f71996d8b6d58baf92b331298 |
|
BLAKE2b-256 | fc7e8d7988d0516edfa601ff94ed4b4e77f6f65c0009859854ffc2ec54385e92 |