PyPlink
is a Python module to read and write Plink's binary files.
The tool requires a standard Python installation (2.7 or 3.4) with the following modules:
The tool has been tested on Linux only, but should work on MacOS and Windows operating systems as well.
Using pip
:
pip install pyplink
Using conda
:
conda install pyplink -c http://statgen.org/wp-content/uploads/Softwares/pyplink
It is possible to add the channel to conda's configuration, so that the
-c http://statgen.org/...
can be omitted to update or install the package.
To add the channel, perform the following command:
conda config --add channels http://statgen.org/wp-content/uploads/Softwares/pyplink
To update the module using pip
:
pip install -U puplink
To update the module using conda
:
# If the channel has been configured (see above)
conda update pyplink
# Otherwise
conda update pyplink -c http://statgen.org/wp-content/uploads/Softwares/pyplink
To test the module, just perform the following command:
>>> import pyplink
>>> pyplink.test()
.......................
----------------------------------------------------------------------
Ran 23 tests in 0.149s
OK
The following
notebook
contains a demonstration (for both Python 2 and 3) of the PyPlink
module.