XL-mHG: A Semiparametric Test for Enrichment
Project description
XL-mHG
======
| |pypi| |versions| |license|
=========== ====================================================================
**master** |codecov-master| |travis-master| |appveyor-master| |docs-latest|
**develop** |codecov-develop| |travis-develop| |appveyor-develop| |docs-develop|
=========== ====================================================================
This is an efficient Python/Cython implementation of the semiparametric
`XL-mHG test`__ for enrichment in ranked lists. The XL-mHG test is an extension
of the nonparametric `mHG test`__, which was developed by `Dr. Zohar
Yakhini`__ and colleagues.
__ xlmhg_paper_
__ mhg_paper_
__ zohar_
Installation
------------
.. code-block:: bash
$ pip install xlmhg
Getting started
---------------
The `xlmhg` package provides two functions (one simple and more more advanced)
for performing XL-mHG tests. These functions are documented in the
`User Manual`__. Here's a quick example using the "simple" test function:
.. code-block:: python
import xlmhg
stat, cutoff, pval = xlmhg.xlmhg_test(v, X, L)
Where: ``v`` is the ranked list of 0's and 1's, represented by a NumPy array of
integers, ``X`` and ``L`` are the XL-mHG parameters, and the return values have
the following meanings:
- ``stat``: The XL-mHG test statistic
- ``cutoff``: The cutoff at which XL-mHG test statistic was attained
- ``pval``: The XL-mHG p-value
__ user_manual_
Documentation
-------------
Please refer to the `XL-mHG User Manual`__ (hosted on ReadTheDocs).
__ user_manual_
Citing XL-mHG
-------------
If you use the XL-mHG test in your research, please cite `Eden et al. (PLoS
Comput Biol, 2007)`__ and `Wagner (PLoS One, 2015)`__.
__ mhg_paper_
__ go_pca_paper_
Copyright and License
---------------------
Copyright (c) 2015-2017 Florian Wagner
::
XL-mHG is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License, Version 3,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.. _xlmhg_paper: https://doi.org/10.7287/peerj.preprints.1962v2
.. _zohar: http://bioinfo.cs.technion.ac.il/people/zohar
.. _mhg_paper: https://dx.doi.org/10.1371/journal.pcbi.0030039
.. _go_pca_paper: https://dx.doi.org/10.1371/journal.pone.0143196
.. _user_manual: https://xl-mhg.readthedocs.io
.. |pypi| image:: https://img.shields.io/pypi/v/xlmhg.svg
:target: https://pypi.python.org/pypi/xlmhg
:alt: PyPI version
.. |versions| image:: https://img.shields.io/pypi/pyversions/xlmhg.svg
:target: https://pypi.python.org/pypi/xlmhg
:alt: Python versions supported
.. |license| image:: https://img.shields.io/pypi/l/xlmhg.svg
:target: https://pypi.python.org/pypi/xlmhg
:alt: License
.. |travis-master| image:: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=master
:alt: Travis-CI build Status (master branch)
:scale: 100%
:target: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=master
.. |travis-develop| image:: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=develop
:alt: Travis-CI build Status (develop branch)
:scale: 100%
:target: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=develop
.. |appveyor-master| image:: https://ci.appveyor.com/api/projects/status/wpon7qkwpxx3fe6q/branch/master?svg=true
:alt: Appveyor build Status (master branch)
:scale: 100%
:target: https://ci.appveyor.com/project/flo-compbio/xlmhg/branch/master
.. |appveyor-develop| image:: https://ci.appveyor.com/api/projects/status/wpon7qkwpxx3fe6q/branch/develop?svg=true
:alt: Appveyor build Status (develop branch)
:scale: 100%
:target: https://ci.appveyor.com/project/flo-compbio/xlmhg/branch/develop
.. |codecov-master| image:: https://codecov.io/gh/flo-compbio/xlmhg/branch/master/graph/badge.svg
:alt: Coverage (master branch)
:target: https://codecov.io/gh/flo-compbio/xlmhg/branch/master
.. |codecov-develop| image:: https://codecov.io/gh/flo-compbio/xlmhg/branch/develop/graph/badge.svg
:alt: Coverage (develop branch)
:target: https://codecov.io/gh/flo-compbio/xlmhg/branch/develop
.. |docs-latest| image:: https://readthedocs.org/projects/xl-mhg/badge/?version=latest
:alt: Documentation Status (master branch)
:target: https://xl-mhg.readthedocs.io/en/latest
.. |docs-develop| image:: https://readthedocs.org/projects/xl-mhg/badge/?version=develop
:alt: Documentation Status (develop branch)
:target: https://xl-mhg.readthedocs.io/en/develop
======
| |pypi| |versions| |license|
=========== ====================================================================
**master** |codecov-master| |travis-master| |appveyor-master| |docs-latest|
**develop** |codecov-develop| |travis-develop| |appveyor-develop| |docs-develop|
=========== ====================================================================
This is an efficient Python/Cython implementation of the semiparametric
`XL-mHG test`__ for enrichment in ranked lists. The XL-mHG test is an extension
of the nonparametric `mHG test`__, which was developed by `Dr. Zohar
Yakhini`__ and colleagues.
__ xlmhg_paper_
__ mhg_paper_
__ zohar_
Installation
------------
.. code-block:: bash
$ pip install xlmhg
Getting started
---------------
The `xlmhg` package provides two functions (one simple and more more advanced)
for performing XL-mHG tests. These functions are documented in the
`User Manual`__. Here's a quick example using the "simple" test function:
.. code-block:: python
import xlmhg
stat, cutoff, pval = xlmhg.xlmhg_test(v, X, L)
Where: ``v`` is the ranked list of 0's and 1's, represented by a NumPy array of
integers, ``X`` and ``L`` are the XL-mHG parameters, and the return values have
the following meanings:
- ``stat``: The XL-mHG test statistic
- ``cutoff``: The cutoff at which XL-mHG test statistic was attained
- ``pval``: The XL-mHG p-value
__ user_manual_
Documentation
-------------
Please refer to the `XL-mHG User Manual`__ (hosted on ReadTheDocs).
__ user_manual_
Citing XL-mHG
-------------
If you use the XL-mHG test in your research, please cite `Eden et al. (PLoS
Comput Biol, 2007)`__ and `Wagner (PLoS One, 2015)`__.
__ mhg_paper_
__ go_pca_paper_
Copyright and License
---------------------
Copyright (c) 2015-2017 Florian Wagner
::
XL-mHG is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License, Version 3,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.. _xlmhg_paper: https://doi.org/10.7287/peerj.preprints.1962v2
.. _zohar: http://bioinfo.cs.technion.ac.il/people/zohar
.. _mhg_paper: https://dx.doi.org/10.1371/journal.pcbi.0030039
.. _go_pca_paper: https://dx.doi.org/10.1371/journal.pone.0143196
.. _user_manual: https://xl-mhg.readthedocs.io
.. |pypi| image:: https://img.shields.io/pypi/v/xlmhg.svg
:target: https://pypi.python.org/pypi/xlmhg
:alt: PyPI version
.. |versions| image:: https://img.shields.io/pypi/pyversions/xlmhg.svg
:target: https://pypi.python.org/pypi/xlmhg
:alt: Python versions supported
.. |license| image:: https://img.shields.io/pypi/l/xlmhg.svg
:target: https://pypi.python.org/pypi/xlmhg
:alt: License
.. |travis-master| image:: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=master
:alt: Travis-CI build Status (master branch)
:scale: 100%
:target: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=master
.. |travis-develop| image:: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=develop
:alt: Travis-CI build Status (develop branch)
:scale: 100%
:target: https://travis-ci.org/flo-compbio/xlmhg.svg?branch=develop
.. |appveyor-master| image:: https://ci.appveyor.com/api/projects/status/wpon7qkwpxx3fe6q/branch/master?svg=true
:alt: Appveyor build Status (master branch)
:scale: 100%
:target: https://ci.appveyor.com/project/flo-compbio/xlmhg/branch/master
.. |appveyor-develop| image:: https://ci.appveyor.com/api/projects/status/wpon7qkwpxx3fe6q/branch/develop?svg=true
:alt: Appveyor build Status (develop branch)
:scale: 100%
:target: https://ci.appveyor.com/project/flo-compbio/xlmhg/branch/develop
.. |codecov-master| image:: https://codecov.io/gh/flo-compbio/xlmhg/branch/master/graph/badge.svg
:alt: Coverage (master branch)
:target: https://codecov.io/gh/flo-compbio/xlmhg/branch/master
.. |codecov-develop| image:: https://codecov.io/gh/flo-compbio/xlmhg/branch/develop/graph/badge.svg
:alt: Coverage (develop branch)
:target: https://codecov.io/gh/flo-compbio/xlmhg/branch/develop
.. |docs-latest| image:: https://readthedocs.org/projects/xl-mhg/badge/?version=latest
:alt: Documentation Status (master branch)
:target: https://xl-mhg.readthedocs.io/en/latest
.. |docs-develop| image:: https://readthedocs.org/projects/xl-mhg/badge/?version=develop
:alt: Documentation Status (develop branch)
:target: https://xl-mhg.readthedocs.io/en/develop
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
xlmhg-2.4.8.tar.gz
(131.8 kB
view hashes)
Built Distributions
xlmhg-2.4.8-cp35-cp35m-win32.whl
(70.3 kB
view hashes)
Close
Hashes for xlmhg-2.4.8-cp36-cp36m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bb3a671c5535557d1deca28b90255413858ef5a8c929b5a2897751e73eae874 |
|
MD5 | 06da223176c42efe6a8016256666a892 |
|
BLAKE2b-256 | 68220f2ebfe20198a2c7e2e87b209877311b31c6a99d8e5891903258f0c0735e |
Close
Hashes for xlmhg-2.4.8-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3717204b0cb5ca66c934ce45bb49c5bea01877cd736a71e43d94b1f8ab505fb |
|
MD5 | ffd0d86c74c7d507817ec55b7a0c7e79 |
|
BLAKE2b-256 | 3ef01ca7592f413de99a273a5e2f2b3fcd047afa0d7ce0f25a1d142f885da873 |
Close
Hashes for xlmhg-2.4.8-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8a4cf1015ff003f078f6faf25a7a990b7ca359bbfc9b8245fa353583351a429 |
|
MD5 | 30b9cea4173a5a67f04b511b983a2c40 |
|
BLAKE2b-256 | d53ba423035b76c847eedee01b40af0c2c018fe6fccbc4db79415595d9701f02 |
Close
Hashes for xlmhg-2.4.8-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e269b107feb55c5467876f67c507517a920f042d55dc564cadc5a22dcc15d95b |
|
MD5 | ef0780b82dc84ee80e1a2b4e8249c8d0 |
|
BLAKE2b-256 | cd23cc52ead39729f87b83a832fbdab90e7e6fc84838fb261f803318a59db0a2 |
Close
Hashes for xlmhg-2.4.8-cp35-cp35m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d17e05c45c6d0a465c5bf3d34ec6c1b0c5839e37be3bb45beaff5bf2ec61ac |
|
MD5 | e2bd910d5a2e5778398cdbdb65512e11 |
|
BLAKE2b-256 | 8606af3541177b15c9b2eed4d6331b5fb3b1826ef581e606d1deed6b849ecb71 |
Close
Hashes for xlmhg-2.4.8-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce905984f979fcdc21c269d1a32926f6d0fd528e290e463867f1c9c0de8895e4 |
|
MD5 | e2d1963b3ffda4361794cf5058820cd6 |
|
BLAKE2b-256 | 22a15cee4df5533d06b04568c8179095cc3832e073e01aff4b0b0f3b1372ea5a |
Close
Hashes for xlmhg-2.4.8-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82d06328310e9284adc00a7f234802fe714885c21fa73654b3de04b3b5ee7870 |
|
MD5 | aa5828ab82463251cdb0c6cbbcaee91a |
|
BLAKE2b-256 | 66e4982eea2b0145a3ae7bb43524f0922e51112d21342de95d2b61a83a23865b |
Close
Hashes for xlmhg-2.4.8-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fcf0c5ea986e2b93caad6b933073e97278d6011baee6bc35061953e73d8539e |
|
MD5 | 5ee7928a6d58455dd11255d177b86531 |
|
BLAKE2b-256 | 370faa00f6386f8e3ab1aa8cf4f69720ecbac6fae8380f75c11fefd96293b6fd |
Close
Hashes for xlmhg-2.4.8-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cfbbf0dd0be46724043ffbdf1f976f9e4fbb34eeb61fa41d8628d6903bc7318 |
|
MD5 | b73ecdbfb658dcb1c82291eb4ec67058 |
|
BLAKE2b-256 | bb01e7082e56955d1df2375da692733238c69b601bea5a4a3b8acbd8adc3556a |
Close
Hashes for xlmhg-2.4.8-cp27-cp27m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b3df5b97cd187848b3411784167ee017e8a519a616bca4d20c581cef05e066 |
|
MD5 | 5081673f027035b78c7f52a2a2a76987 |
|
BLAKE2b-256 | 11348ee9420fea7383ca60a2ec1602a7ab198e067c2617edfb28337c7aabdd9d |