{ "info": { "author": "haibao tang, brent pedersen; Bo Li", "author_email": "bli28@mgh.harvard.edu", "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\n.. image:: https://travis-ci.org/brentp/fishers_exact_test.svg?branch=master\n :target: https://travis-ci.org/brentp/fishers_exact_test\n\nSimple, fast implementation of `Fisher's exact test `_. . For example, for the following table:\n\n============ ===================== =========================\no Having the property Not having the property\n============ ===================== =========================\nSelected 12 5\nNot selected 29 2\n============ ===================== =========================\n\nPerhaps we are interested in whether there is any difference of property in selected vs. non-selected groups, then we can do the Fisher's exact test.\n\n\nInstallation\n============\nwithin this folder ::\n\n easy_install .\n\nfrom pypi ::\n\n easy_install fisher\n\nor from github (contributions welcomed) ::\n\n git clone git://github.com/brentp/fishers_exact_test.git\n\n\nUsage\n=====\n``fisher.pvalue()`` accepts 4 values corresponding to the 2-by-2 contingency table, returns an object with attributes for left_tail, right_tail, and two_tail p-values\n::\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\nBenchmark\n=========\nA simple benchmark that calls the Fisher's exact test 1000 times (in ``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.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lilab-bcb/fishers_exact_test", "keywords": "statistics cython", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "fisher-modified", "package_url": "https://pypi.org/project/fisher-modified/", "platform": "", "project_url": "https://pypi.org/project/fisher-modified/", "project_urls": { "Homepage": "https://github.com/lilab-bcb/fishers_exact_test" }, "release_url": "https://pypi.org/project/fisher-modified/0.1.5/", "requires_dist": [ "numpy" ], "requires_python": "", "summary": "Forked from fisher (https://github.com/brentp/fishers_exact_test). Recompile it with Cython 0.29.4 to be compatible with Python 3.7.", "version": "0.1.5" }, "last_serial": 5601387, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "b4aca61acc649d2486c9680ef0450334", "sha256": "57a52fa93f42096c776361aa614ee0a74d1c43404e517f91118c58a43bdbf89e" }, "downloads": -1, "filename": "fisher_modified-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl", "has_sig": false, "md5_digest": "b4aca61acc649d2486c9680ef0450334", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 80481, "upload_time": "2019-07-29T19:22:43", "url": "https://files.pythonhosted.org/packages/1b/34/e1056105b2980e7c0a456d8ecda694aa4951dca5250da7c7507f29896413/fisher_modified-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "3139f0b9b1fb00b3e0df40889bc42ef0", "sha256": "ee7d7282e57dba280af1d16116df936dc998dce5c5dfc742fbe2fe4e674f519f" }, "downloads": -1, "filename": "fisher-modified-0.1.5.tar.gz", "has_sig": false, "md5_digest": "3139f0b9b1fb00b3e0df40889bc42ef0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 129149, "upload_time": "2019-07-29T19:22:46", "url": "https://files.pythonhosted.org/packages/18/ac/3894b8b3ba9bfe7c76bfb4a4b6f3c205e7dc3605f3a2c1d3e253d1cd77d9/fisher-modified-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4aca61acc649d2486c9680ef0450334", "sha256": "57a52fa93f42096c776361aa614ee0a74d1c43404e517f91118c58a43bdbf89e" }, "downloads": -1, "filename": "fisher_modified-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl", "has_sig": false, "md5_digest": "b4aca61acc649d2486c9680ef0450334", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 80481, "upload_time": "2019-07-29T19:22:43", "url": "https://files.pythonhosted.org/packages/1b/34/e1056105b2980e7c0a456d8ecda694aa4951dca5250da7c7507f29896413/fisher_modified-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "3139f0b9b1fb00b3e0df40889bc42ef0", "sha256": "ee7d7282e57dba280af1d16116df936dc998dce5c5dfc742fbe2fe4e674f519f" }, "downloads": -1, "filename": "fisher-modified-0.1.5.tar.gz", "has_sig": false, "md5_digest": "3139f0b9b1fb00b3e0df40889bc42ef0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 129149, "upload_time": "2019-07-29T19:22:46", "url": "https://files.pythonhosted.org/packages/18/ac/3894b8b3ba9bfe7c76bfb4a4b6f3c205e7dc3605f3a2c1d3e253d1cd77d9/fisher-modified-0.1.5.tar.gz" } ] }