This is a Python library for working with GenePattern programmatically. Behind the scenes, calls from this library execute the GenePattern REST API.
This library requires Python 3.6+. The bundled data submodule gp.data
also requires pandas, although the rest of the module does not.
Python 2 Support: Support for Python 2 was removed in version 1.4.0. Python 2 users should use version 1.3.1.
It is recommended to install this library from PIP. Simply execute the command below:
pip install genepattern-python
To upgrade to the latest version of the library, execute the command below:
pip install genepattern-python --upgrade
A tutorial on how to use the GenePattern Python Library is available here.
Connecting to the GenePattern public server now requires TLS 1.2+. Older versions of SSL and TLS will no longer work. If you're attempting to connect and receiving a "Connection Reset by Peer" error, you will need to update the OpenSSL library associated with your Python installation.