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
Metadata
Release files for single-sample-gsea 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| single_sample_gsea-0.2.0.tar.gz | 11.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| single_sample_gsea-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.0 kB
Release files / single_sample_gsea-0.2.0.tar.gz
| Download URL | single_sample_gsea-0.2.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47c971c449b1711ce653c2db09299f3bef720ddf137895f502f5ee0e72290026
|
|
BLAKE2b-256 checksum How to use checksums |
4045061fd428ad5ee781562118d72c9cadf1d7b7c72367d5c1e3b9e838e08e0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / single_sample_gsea-0.2.0-py3-none-any.whl
| Download URL | single_sample_gsea-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f48989d2be4067ca13fbda41466dda55343906eb87d1c9407817257ca2fa7cd
|
|
BLAKE2b-256 checksum How to use checksums |
63f3d5052b22693a3f3bf27e03f45b4aaecbe31af4924b4d487f97041693e7cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for single-sample-gsea 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.