{ "info": { "author": "Rani Powers (fork originally from gseapy by Zhuoqing Fang)", "author_email": "rani.powers@ucdenver.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Software Development :: Libraries" ], "description": "GSEA-InContext: Gene Set Enrichment Analysis In Context\n========\n\nGene Set Enrichment Analysis (GSEA) is routinely used to analyze and interpret coordinate changes in transcriptomics experiments. For an experiment where less than seven samples per condition are compared, GSEA employs a competitive null hypothesis to test significance. A gene set enrichment score is tested against a null distribution of enrichment scores generated from permuted gene sets, where genes are randomly selected from the input experiment. Looking across a variety of biological conditions, however, genes are not randomly distributed with many showing consistent patterns of up- or down-regulation. As a result, common patterns of positively and negatively enriched gene sets are observed across experiments. Placing a single experiment into the context of a relevant set of background experiments allows us to identify both the common and experiment-specific patterns of gene set enrichment. We developed the GSEA-InContext method to allow a user to account for gene expression patterns within a defined background set of experiments to identify statistically significantly enriched gene sets in their own experiment.\n\nSee below for examples on running the GSEA-InContext algorithm.\n\nThis repo is a fork of [GSEApy](https://github.com/BioNinja/GSEApy) (original documentation [here](http://gseapy.rtfd.io/). We have added a new tool ``GSEA_InContext`` which runs the GSEAPreranked algorithm but uses a background set of ranked lists to calculate an empirical null distribution for informing the permutation procedure. For examples using the original GSEApy library, [visit this page](http://gseapy.readthedocs.io/en/master/gseapy_example.html).\n\n\nAbout GSEA-InContext\n--------------------------------------------------------------------------------------------\n\nCurrently, there are no methods available for a user to easily compare their GSEA results to GSEA results obtained in other experiments to discern similar and/or distinct patterns affected across experiments. GSEA-InContext accounts for gene-specific variation estimated from an experimental background. Whereas GSEA identifies all signiificantly enriched gene sets in an experiment, this method allows the user to ask a complementary question; namely, which gene sets are uniquely enriched in a single experiment compared to many other, independent experiments.\n\nOur method applies the same approach as GSEA to calculate the nominal p-value. However, in contrast to GSEAPreranked, GSEA-InContext employs an alternative significance testing procedure to generate the null distribution, in which permuted gene sets are generated using the density of gene ranks estimated from a set of user-defined background experiments. We estimate a gene's probability density using a Gaussian kernel over the experiments in the background set.\n\nThe GSEA-InContext algorithm can be run using the ``incontext`` subcommand. Additional subcommands can be run as in the original GSEApy, including: ``gsea``, ``prerank``, ``ssgsea``, ``replot`` ``enrichr``. See the original `GSEApy `_ repository.\n\nThe full ``GSEA`` is described in:\n[GSEA](http://www.broadinstitute.org/cancer/software/gsea/wiki/index.php/Main_Page) documentation. All file formats for GSEApy are identical to ``GSEA`` desktop version.\n\n\nData & Availability\n---------------------\n\nThe data, results and analysis described in [our preprint](https://www.biorxiv.org/content/early/2018/02/04/259440) are hosted in a Synapse project available [here](https://www.synapse.org/GSEA_InContext)(doi:10.7303/syn11804693).\n\n\nDependencies & Requirements\n--------------\n* Python 3.4+\n* Numpy >= 1.13.0\n* Pandas\n* Matplotlib\n* Beautifulsoup4\n* Requests (for enrichr API)\n\nYou may also need to install lxml and html5lib to parse xml files.\n\nRunning GSEApy and GSEA-InContext\n--------------------------------------------------------------------------------------------\n\nBefore you start:\n-----------------\n\nConvert all gene symbol names to uppercase. The ranked lists input to ``prerank`` or ``incontext`` can be supplied as file paths (.rnk) or a two-column Pandas DataFrame (columns ``gene_name`` and ``fold_change``). The background ranked lists input to ``incontext`` is supplied as a text file containing the list of .rnk files to use in permutation, or as a .csv file containing pre-permuted gene lists created with the ``make_background_dist()`` function.\n\n\nRun GSEAPY inside Python console:\n------------------\n\n| Running GSEAPreranked and GSEA-InContext in Python using file paths as input\n\n```\n\n import gseapy\n\n # Run GSEA Prerank\n gseapy.prerank(rnk='gsea_data.rnk', gene_sets='gene_sets.gmt', outdir='out')\n\n # Run GSEA-InContext\n gseapy.incontext(rnk='gsea_data.rnk', gene_sets='gene_sets.gmt', backround_rnks = 'permuted_background.csv', outdir='out')\n```\n\nA full example can be seen in ``run_example.py``. The full analysis of Kegg and Hallmarks gene sets was run with ``run_all_442.py``.\n\n\nBug Reports\n------------------\n\nIf you would like to report any bugs when you running the ``incontext`` module, please create an issue on GitHub [here](https://github.com/CostelloLab/GSEA-InContext). For issues relating to other modules, you may wish to visit the[original GSEAPY repo](https://github.com/BioNinja/GSEApy).\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/CostelloLab/GSEA-InContext", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CostelloLab/GSEA-InContext", "keywords": "Gene Ontology,GO,Biology,Enrichment,Bioinformatics,Computational Biology", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gsea-incontext", "package_url": "https://pypi.org/project/gsea-incontext/", "platform": "", "project_url": "https://pypi.org/project/gsea-incontext/", "project_urls": { "Download": "https://github.com/CostelloLab/GSEA-InContext", "Homepage": "https://github.com/CostelloLab/GSEA-InContext" }, "release_url": "https://pypi.org/project/gsea-incontext/0.9.6/", "requires_dist": [ "numpy (>=1.13.0)", "pandas (>=0.16)", "matplotlib (>=1.4.3)", "beautifulsoup4 (>=4.4.1)", "requests", "lxml", "html5lib" ], "requires_python": "", "summary": "GSEA-InContext Gene Set Enrichment Analysis in Python", "version": "0.9.6" }, "last_serial": 5393627, "releases": { "0.9.3": [ { "comment_text": "", "digests": { "md5": "2830b23270c32f017f7c0b3c9181c4c1", "sha256": "31712da1dfded4d4d468389bd63ffedb1947b5d630180beadb86973e7af9b9dc" }, "downloads": -1, "filename": "gsea_incontext-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "2830b23270c32f017f7c0b3c9181c4c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 39922, "upload_time": "2019-06-04T05:05:52", "url": "https://files.pythonhosted.org/packages/06/5c/b2315a991fa22426225a0e0c4cb954cf36e83c26e608d3ca55fda9fccd18/gsea_incontext-0.9.3-py3-none-any.whl" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "6f91ceccc8256c2085ad0c36198c7d5e", "sha256": "068565bcaf57c85fdbc0c77ee249ae5465d35c5266e952d466175e8a609110b2" }, "downloads": -1, "filename": "gsea_incontext-0.9.5-py3-none-any.whl", "has_sig": false, "md5_digest": "6f91ceccc8256c2085ad0c36198c7d5e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 50661, "upload_time": "2019-06-04T05:21:02", "url": "https://files.pythonhosted.org/packages/cf/3d/7ce46b7b1e197b57498b368c1708756d2fd31b778dbd18db5f4d57661171/gsea_incontext-0.9.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "355cd3ce96f1daa89f075d1922af2093", "sha256": "a86ed9d66f1debd585b792a255dbe6a44ccefcb24f3ad3d52aca37f220fc74db" }, "downloads": -1, "filename": "gsea_incontext-0.9.5.tar.gz", "has_sig": false, "md5_digest": "355cd3ce96f1daa89f075d1922af2093", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39198, "upload_time": "2019-06-04T05:21:04", "url": "https://files.pythonhosted.org/packages/28/85/bbb99a23989aaaffe485fcff7b313fa2b084927af7653fda94974461e331/gsea_incontext-0.9.5.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "d018b0747f8877f31e8e0f4de7299382", "sha256": "6cf939dee3bb4210b55301f1e5441908d29e7c1d0e0de3e83d21e1758c7c2b73" }, "downloads": -1, "filename": "gsea_incontext-0.9.6-py3-none-any.whl", "has_sig": false, "md5_digest": "d018b0747f8877f31e8e0f4de7299382", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 50653, "upload_time": "2019-06-13T00:21:08", "url": "https://files.pythonhosted.org/packages/d9/c8/29d124919be9c081295894aa8318b7ba6729eafb3b3c156af78a5e53631f/gsea_incontext-0.9.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c64e001884ccce65f1787fa4699f19e", "sha256": "2d8f78119c442446287951bdd5799d27b2f5851b9abdeda9835b4387d850c716" }, "downloads": -1, "filename": "gsea_incontext-0.9.6.tar.gz", "has_sig": false, "md5_digest": "3c64e001884ccce65f1787fa4699f19e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39324, "upload_time": "2019-06-13T00:21:09", "url": "https://files.pythonhosted.org/packages/97/23/bc8cd87ec2ff62e4dce24b1c8e8ad139164bc2d2afdba1c7b44f4c30e023/gsea_incontext-0.9.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d018b0747f8877f31e8e0f4de7299382", "sha256": "6cf939dee3bb4210b55301f1e5441908d29e7c1d0e0de3e83d21e1758c7c2b73" }, "downloads": -1, "filename": "gsea_incontext-0.9.6-py3-none-any.whl", "has_sig": false, "md5_digest": "d018b0747f8877f31e8e0f4de7299382", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 50653, "upload_time": "2019-06-13T00:21:08", "url": "https://files.pythonhosted.org/packages/d9/c8/29d124919be9c081295894aa8318b7ba6729eafb3b3c156af78a5e53631f/gsea_incontext-0.9.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c64e001884ccce65f1787fa4699f19e", "sha256": "2d8f78119c442446287951bdd5799d27b2f5851b9abdeda9835b4387d850c716" }, "downloads": -1, "filename": "gsea_incontext-0.9.6.tar.gz", "has_sig": false, "md5_digest": "3c64e001884ccce65f1787fa4699f19e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39324, "upload_time": "2019-06-13T00:21:09", "url": "https://files.pythonhosted.org/packages/97/23/bc8cd87ec2ff62e4dce24b1c8e8ad139164bc2d2afdba1c7b44f4c30e023/gsea_incontext-0.9.6.tar.gz" } ] }