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-2019 Florian Wagner
::
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.. _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-2019 Florian Wagner
::
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.. _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.5.4.tar.gz
(146.1 kB
view hashes)
Built Distributions
xlmhg-2.5.4-cp37-cp37m-win32.whl
(72.8 kB
view hashes)
xlmhg-2.5.4-cp36-cp36m-win32.whl
(72.8 kB
view hashes)
Close
Hashes for xlmhg-2.5.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43bea121609ae6b7b79cf9b60f174b7442746d2fdab4a64ff2d60cbb7c60677 |
|
MD5 | ed53ee5e0bf94498b06eba85f617addd |
|
BLAKE2b-256 | d5b5cffaa439e4001183a84bc658a61916e6e5e55bd597573be36bb1dd699ea2 |
Close
Hashes for xlmhg-2.5.4-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dfc82555c5572e23f21ec13a3be345fd4caa53fc2fc8a0fc8e8d23b292cedb9 |
|
MD5 | d8c061ed6606b54357fc43d1bb43ffba |
|
BLAKE2b-256 | 18eadaaa3f0ca280c88bfd2de74ae988da7bb8f40b9bd6c655fff2b17270b5c9 |
Close
Hashes for xlmhg-2.5.4-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a7e75d1a89a38350c4d3c50407938832947fbd71c827fc0b470efd41a0c488 |
|
MD5 | 259cdabe12a270005996bae3c555a5a9 |
|
BLAKE2b-256 | 00a097cb916d01ecdf3df9b059cb55a87380df756d07b6231f097dcb5eb322d4 |
Close
Hashes for xlmhg-2.5.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25705d854b25f85a08c74238fa4f0b487f3fae8c60df2c9aa8b4f7187aef4f47 |
|
MD5 | 503069024ada934e1c49c5c172d99d03 |
|
BLAKE2b-256 | 4c4c53ceb4401e6c6c6c38da7937af7f4f3474ec0aec7eee877be1c97572b35d |
Close
Hashes for xlmhg-2.5.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bac3708c89f11246f4c2636ae97b3b94e34d6ce034097c3d47ea961a130874f |
|
MD5 | 68dfe0f586345c02b8345ed0f6af685d |
|
BLAKE2b-256 | 71da233fffd72f9ab2c983efe6368acb31c9293b66c5de15d5c0c21bf12c4c45 |
Close
Hashes for xlmhg-2.5.4-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 346ecdc793b5238348c30bf6d8f73996444fe83a0453d068bba398526058d0fc |
|
MD5 | 8dd84673028d4d6f929923a467e9dfb6 |
|
BLAKE2b-256 | f04f3fc260764c03829821652a8aa95636ae7ae011d86b2b83074983a9eeaf1f |
Close
Hashes for xlmhg-2.5.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69abb6a5c8b4b1f1751c20f440e8c08d89fb8e7b82fa66472c1d6072cdac17de |
|
MD5 | f9e9c0e0138a375b7e43e48f50ffe08b |
|
BLAKE2b-256 | a029be8c1ae8112e5bad31164f69ac56e04951d2924ed5e3e610fd7c0544e4b3 |
Close
Hashes for xlmhg-2.5.4-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0954685504a568a3218807fe21c28656cb85c5c8864b3f357a270d41357dd89d |
|
MD5 | c4dfc2aab9d4df2bbc7dafb81847034f |
|
BLAKE2b-256 | 922ecc54e9ae86b5b9a978875c337ef4df61ad259e8c6bbe1ba006de94245e38 |
Close
Hashes for xlmhg-2.5.4-cp37-cp37m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2ab8616bd1a8b8015f2859b03aecf875d38a3727625e4324732f15b796f38b |
|
MD5 | 890582c60b1dda1bbaf1240d68c37fc4 |
|
BLAKE2b-256 | ba575f80e39236226565e787548557cf80a0596d393c0aaad66cc9bf1f002591 |
Close
Hashes for xlmhg-2.5.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 918f304d743c189bc0f228aefe1546a7ebce9cc9d3c816ea1205875dddefdcb4 |
|
MD5 | 5033f77047850c962107b0f29d71bfc9 |
|
BLAKE2b-256 | 9b38baaa743750507697381a2c44ba18730e22f3a8a9ebd662b60c5a2bbe4e38 |
Close
Hashes for xlmhg-2.5.4-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edb97b8950a300b49ac54276a0dfebba2ff6584e1a9e0829df32b45262367869 |
|
MD5 | 0582fca68e39f81cede965be39b43e01 |
|
BLAKE2b-256 | 264c08dc47a0ddbe00d2d0b8a37f91c08c4aa461a69b25797311abba8887fca4 |
Close
Hashes for xlmhg-2.5.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1cb7f92a7ca5f579e5de77a76396681a67d1b9f1c3dfe8c65532d306efff3e7 |
|
MD5 | f4951845c4f61362edde650de9f9954c |
|
BLAKE2b-256 | b4f8c307f12c2203dbf92b6746022ac218a7dcbd82bcae9cd8ec39dff622f572 |
Close
Hashes for xlmhg-2.5.4-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e69fec87fc042d2620a1b65c5e27bf293632864be94ea26e8d29164d101ed33 |
|
MD5 | 9b1189514cad3e10bad0cffae7436d96 |
|
BLAKE2b-256 | 30b4d9d5e4fccbddb65ca3b99492a539a6125868a2412a48656930e94778caef |
Close
Hashes for xlmhg-2.5.4-cp36-cp36m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e06c5c4fb33e32ccb3666531f1a6a2f310a72b44cc594890355ca971ae1688 |
|
MD5 | 30c4f4c0542b3b8087436b3e09f95199 |
|
BLAKE2b-256 | 6ae08d7e60d4c7afd6ee8015bbe0e52ac32cbe84f423f667b3b8a2b7a5b60249 |
Close
Hashes for xlmhg-2.5.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dc9ac6c8c0ed70ca4d64972c7efbbbae422204bac87a041d1cf88e7070e1e2f |
|
MD5 | e23df1472aa719d6cae9bb59aafe1bdd |
|
BLAKE2b-256 | c21a35f5c74d2ca824337c63f38235f578711881b08138bbc7d3b8624f707532 |
Close
Hashes for xlmhg-2.5.4-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0595b384fa18181fb4665bec11aa3945f3d5aae96001e37c9ffa828491e0c3 |
|
MD5 | 2c45e2aa6b029b20823b9bac695ebd9f |
|
BLAKE2b-256 | b7b00a9ec4af4b01589c940927417e7402f28b9a576d9ab7161c5fdbb1f281e6 |
Close
Hashes for xlmhg-2.5.4-cp35-cp35m-macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cce9f2b99a66d96f82028d677937890b6fe71e7c3b94d20da9e64e11faf61b9 |
|
MD5 | 812854d6de63729ff12f308fae21850b |
|
BLAKE2b-256 | 949628cf1dc5c418e7709b18f81a7e0f5acfe41bc6dfa0edb01ee6cbd5a7af98 |