icikt
=====
Description
--------------
The ``icikt`` package provides a Python tool to calculate an information-content-informed
Kendall Tau correlation coefficient between arrays, while also handling missing
values or values which need to be removed.
Full API documentation, user guide, and tutorial can be found on readthedocs_
Installation
--------------
The ``icikt`` package runs under Python 3.4+. Use pip_ to install.
Starting with Python 3.4, pip_ is included by default.
Install on Linux, Mac OS X
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code:: bash
python3 -m pip install icikt
Install on Windows
~~~~~~~~~~~~~~~~~~
.. code:: bash
py -3 -m pip install icikt
Upgrade on Linux, Mac OS X
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code:: bash
python3 -m pip install icikt --upgrade
Upgrade on Windows
~~~~~~~~~~~~~~~~~~
.. code:: bash
py -3 -m pip install icikt --upgrade
GitHub Package installation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Make sure you have git_ installed:
.. code:: bash
git clone https://github.com/MoseleyBioinformaticsLab/pythonICIKendallTau.git
Dependencies
~~~~~~~~~~~~
``icikt`` requires the following Python libraries:
* numpy_ and scipy_ for mathmatical calculations.
* docopt_ for a command line interface.
* Cython_ for optimized performance.
To install dependencies manually:
.. code:: bash
pip3 install numpy
pip3 install scipy
pip3 install docopt
pip3 install cython
Basic usage
-----------
To use the ``icikt`` package, input a 2d array with n columns each representing
an array of data for a variable. The `iciktArray` will return two n x n 2d arrays for correlations and p-values.
Each element will correspond to the result of a combination of two columns in the input array. iciktArray can also
be called from the command-line interface given the file path for the data along with several optional parameters(more in docs/tutorial).
Running through command line :
.. code:: bash
icikt iciktArray /path/to/file.tsv --data-format=tsv --replace=None
Running through python script :
.. code:: python
import numpy as np
import icikt
dataArray = np.genfromtxt('/path/to/file.tsv', delimiter="\t")
# or with random values
dataArray = numpy.random.randn(100, 2)
# running just 2 arrays with icikt
corr, pVal, tMax = icikt.icikt(dataArray[:,0], dataArray[:,1])
# running all combinations with iciktArray
scaled, corrRaw, pVals, tauMax = icikt.iciktArray(dataArray)
License
-------
A modified Clear BSD License
Copyright (c) 2021, Praneeth S. Bhatt, Robert M. Flight, Hunter N.B. Moseley
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) 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.
* If the source code is used in a published work, then proper citation of the source
code must be included with the published work.
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
LICENSE. 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.
.. _readthedocs: https://icikt.readthedocs.io/en/latest/
.. _pip: https://pip.pypa.io/
.. _git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git/
.. _numpy: http://www.numpy.org/
.. _scipy: https://scipy.org/scipylib/index.html
.. _docopt: http://docopt.org/
.. _Cython: https://cython.org/
Raw data
{
"_id": null,
"home_page": "https://github.com/MoseleyBioinformaticsLab/icikt",
"name": "icikt",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "icikendalltau missing values",
"author": "Praneeth S. Bhatt, Robert M. Flight, Hunter N.B. Moseley",
"author_email": "praneethsbhatt@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/cf/c2/ffb791b9e6fbdd57f66492e6056b4b55c28018e62c7307f26ff7bb56db8d/icikt-1.2.0.tar.gz",
"platform": "any",
"description": "icikt\n=====\n\nDescription\n--------------\nThe ``icikt`` package provides a Python tool to calculate an information-content-informed \nKendall Tau correlation coefficient between arrays, while also handling missing\nvalues or values which need to be removed.\n\nFull API documentation, user guide, and tutorial can be found on readthedocs_\n\nInstallation\n--------------\nThe ``icikt`` package runs under Python 3.4+. Use pip_ to install.\nStarting with Python 3.4, pip_ is included by default.\n\n\nInstall on Linux, Mac OS X\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n python3 -m pip install icikt\n\n\nInstall on Windows\n~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n py -3 -m pip install icikt\n\n\nUpgrade on Linux, Mac OS X\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n python3 -m pip install icikt --upgrade\n\n\nUpgrade on Windows\n~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n py -3 -m pip install icikt --upgrade\n\n\n\nGitHub Package installation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nMake sure you have git_ installed:\n\n.. code:: bash\n\n git clone https://github.com/MoseleyBioinformaticsLab/pythonICIKendallTau.git\n\nDependencies\n~~~~~~~~~~~~\n``icikt`` requires the following Python libraries:\n * numpy_ and scipy_ for mathmatical calculations.\n * docopt_ for a command line interface.\n * Cython_ for optimized performance.\n\nTo install dependencies manually:\n\n.. code:: bash\n\n pip3 install numpy\n pip3 install scipy\n pip3 install docopt\n pip3 install cython\n\n\nBasic usage\n-----------\n\nTo use the ``icikt`` package, input a 2d array with n columns each representing\nan array of data for a variable. The `iciktArray` will return two n x n 2d arrays for correlations and p-values.\nEach element will correspond to the result of a combination of two columns in the input array. iciktArray can also\nbe called from the command-line interface given the file path for the data along with several optional parameters(more in docs/tutorial).\n\nRunning through command line :\n\n.. code:: bash\n\n icikt iciktArray /path/to/file.tsv --data-format=tsv --replace=None\n\nRunning through python script :\n\n.. code:: python\n\n import numpy as np\n import icikt\n\n dataArray = np.genfromtxt('/path/to/file.tsv', delimiter=\"\\t\")\n # or with random values\n dataArray = numpy.random.randn(100, 2)\n\n # running just 2 arrays with icikt\n corr, pVal, tMax = icikt.icikt(dataArray[:,0], dataArray[:,1])\n \n # running all combinations with iciktArray\n scaled, corrRaw, pVals, tauMax = icikt.iciktArray(dataArray)\n\n \n\n\nLicense\n-------\n\nA modified Clear BSD License\n\n\nCopyright (c) 2021, Praneeth S. Bhatt, Robert M. Flight, Hunter N.B. Moseley\nAll rights reserved.\n\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted (subject to the limitations in the disclaimer\nbelow) provided that the following conditions are met:\n\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n \n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n \n* Neither the name of the copyright holder nor the names of its contributors may be used\n to endorse or promote products derived from this software without specific\n prior written permission.\n \n* If the source code is used in a published work, then proper citation of the source\n code must be included with the published work.\n \n \nNO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS\nLICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\nGOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\nOF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH\nDAMAGE.\n\n\n.. _readthedocs: https://icikt.readthedocs.io/en/latest/\n.. _pip: https://pip.pypa.io/\n.. _git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git/\n.. _numpy: http://www.numpy.org/\n.. _scipy: https://scipy.org/scipylib/index.html\n.. _docopt: http://docopt.org/\n.. _Cython: https://cython.org/\n",
"bugtrack_url": null,
"license": "Modified Clear BSD License",
"summary": "Python tool to calculate the KendallTau correlation coefficients.",
"version": "1.2.0",
"split_keywords": [
"icikendalltau",
"missing",
"values"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "3b3d352ce6475115ee30c9ec9a12c9a3",
"sha256": "5bd319be0524a1e2452a6fd0dd10240cede1b191f12648249542c4bdcbe10e86"
},
"downloads": -1,
"filename": "icikt-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "3b3d352ce6475115ee30c9ec9a12c9a3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 132101,
"upload_time": "2022-12-22T19:56:33",
"upload_time_iso_8601": "2022-12-22T19:56:33.075335Z",
"url": "https://files.pythonhosted.org/packages/cf/c2/ffb791b9e6fbdd57f66492e6056b4b55c28018e62c7307f26ff7bb56db8d/icikt-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-22 19:56:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "MoseleyBioinformaticsLab",
"github_project": "icikt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.18.2"
]
]
},
{
"name": "scipy",
"specs": [
[
">=",
"1.4.1"
]
]
},
{
"name": "docopt",
"specs": [
[
">=",
"0.6.2"
]
]
},
{
"name": "cython",
"specs": [
[
">=",
"0.29.24"
]
]
}
],
"lcname": "icikt"
}