{ "info": { "author": "Haibao Tang, Brent Pedersen", "author_email": "bpederse@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering" ], "description": "# Fisher\\'s Exact Test\n\n[![image](https://travis-ci.org/brentp/fishers_exact_test.svg?branch=master)](https://travis-ci.org/brentp/fishers_exact_test)\n[![image](https://img.shields.io/pypi/v/fisher.svg)](https://pypi.org/project/fisher)\n\nSimple, fast implementation of [Fisher\\'s exact\ntest](http://en.wikipedia.org/wiki/Fisher's_exact_test). For example,\nfor the following table:\n\n| | Having the property | Not having the property |\n| ------------ | ------------------- | ----------------------- |\n| Selected | 12 | 5 |\n| Not selected | 29 | 2 |\n\nPerhaps we are interested in whether there is any difference of property\nin selected vs. non-selected groups, then we can do the Fisher\\'s exact\ntest.\n\n## Installation\n\nWithin this folder :\n\n git clone git://github.com/brentp/fishers_exact_test.git\n pip install .\n\nFrom PyPI :\n\n pip install fisher\n\nOr install the development version :\n\n pip install git+git://github.com/brentp/fishers_exact_test.git\n\n## Usage\n\n`fisher.pvalue()` accepts 4 values corresponding to the 2-by-2\ncontingency table, returns an object with attributes for left_tail,\nright_tail, and two_tail p-values :\n\n >>> from fisher import pvalue\n >>> mat = [[12, 5], [29, 2]]\n >>> p = pvalue(12, 5, 29, 2)\n >>> p.left_tail, p.right_tail, p.two_tail # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS\n (0.04455473783507..., 0.994525206021..., 0.0802685520741...)\n\n## Benchmark\n\nA simple benchmark that calls the Fisher\\'s exact test 1000 times (in\n`scripts/rfisher.py`):\n\n calling python fisher...\n iterations/sec: 3000.62526381\n calling rpy fisher...\n iterations/sec: 289.225902364\n calling R directly...\n iterations/sec: 244.36542276\n\nSo the cython fisher is up to 10 times faster than rpy or R version.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/brentp/fishers_exact_test", "keywords": "statistics cython", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "fisher", "package_url": "https://pypi.org/project/fisher/", "platform": "", "project_url": "https://pypi.org/project/fisher/", "project_urls": { "Homepage": "http://github.com/brentp/fishers_exact_test" }, "release_url": "https://pypi.org/project/fisher/0.1.9/", "requires_dist": null, "requires_python": "", "summary": "Fast Fisher's Exact Test", "version": "0.1.9" }, "last_serial": 5896685, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "57ce9cced7eff106dd75cd561827295c", "sha256": "56c8684cab69068025ac2e64b71e65d3daceb1db42bdfc855bc196f92c25fc94" }, "downloads": -1, "filename": "fisher-0.1.1.tar.gz", "has_sig": false, "md5_digest": "57ce9cced7eff106dd75cd561827295c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44528, "upload_time": "2010-03-23T23:00:30", "url": "https://files.pythonhosted.org/packages/6e/02/db9b81d479ecb3af99cae0fd8461a19f746ac00cf77bf3dbf7f5f09bc946/fisher-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "90fbbee27763605809825e4fb3be702f", "sha256": "90e85900084d2109f1b57d81e6387d5f8cdb7a6b14069703797d9b5b29ed7030" }, "downloads": -1, "filename": "fisher-0.1.2.tar.gz", "has_sig": false, "md5_digest": "90fbbee27763605809825e4fb3be702f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44716, "upload_time": "2010-03-23T23:04:17", "url": "https://files.pythonhosted.org/packages/ca/e4/79fc81c44b0c72ebcee5fec2c234bef98db25af093faccac2ea9e8135041/fisher-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "bfc763b7333a1f428e4c447dd8a85968", "sha256": "bba9e4ece8dda18f7e67fee487947a5ac28ed2bb138600da8b214ac051f87ebf" }, "downloads": -1, "filename": "fisher-0.1.4.tar.gz", "has_sig": false, "md5_digest": "bfc763b7333a1f428e4c447dd8a85968", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45036, "upload_time": "2010-03-30T01:52:35", "url": "https://files.pythonhosted.org/packages/b2/03/da73cc8582c34bafbc4ec4b572f9691c9ae5d0ae743a359b1d16414439f9/fisher-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "e507bca92a63d598e5cfa2d8a5643705", "sha256": "7519d2c884be6f5844bfde900fd294e98a33fe9a943c6b03800513cd281859c3" }, "downloads": -1, "filename": "fisher-0.1.5.tar.gz", "has_sig": false, "md5_digest": "e507bca92a63d598e5cfa2d8a5643705", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 107867, "upload_time": "2017-08-30T15:06:30", "url": "https://files.pythonhosted.org/packages/c3/69/d4c1177f3424cf552233579a370a82fee2d2d9612dc00bf270c2cbe30515/fisher-0.1.5.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "9549d2e9508ecff830c213566f7d6ff7", "sha256": "d378b3f7e488e2a679c6d0e5ea1bce17bc931c2bfe8ec8424ee47a74f251968d" }, "downloads": -1, "filename": "fisher-0.1.9.tar.gz", "has_sig": false, "md5_digest": "9549d2e9508ecff830c213566f7d6ff7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 145547, "upload_time": "2019-09-27T15:21:42", "url": "https://files.pythonhosted.org/packages/bd/8b/951ab577d41d2bb7704e802173ea1de96918894d90636bfdf24477321f4f/fisher-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9549d2e9508ecff830c213566f7d6ff7", "sha256": "d378b3f7e488e2a679c6d0e5ea1bce17bc931c2bfe8ec8424ee47a74f251968d" }, "downloads": -1, "filename": "fisher-0.1.9.tar.gz", "has_sig": false, "md5_digest": "9549d2e9508ecff830c213566f7d6ff7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 145547, "upload_time": "2019-09-27T15:21:42", "url": "https://files.pythonhosted.org/packages/bd/8b/951ab577d41d2bb7704e802173ea1de96918894d90636bfdf24477321f4f/fisher-0.1.9.tar.gz" } ] }