{ "info": { "author": "Christian Ebeling", "author_email": "christian.ebeling@scai.fraunhofer.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Database", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "PyCTD |stable_build|\n====================\n\n|stable_documentation| |pypi_license|\n\n`PyCTD `_ is a Python package\nto access and query chemical\u2013gene/protein interactions, chemical\u2013disease and gene\u2013disease\nrelationships by data provided by the `Comparative Toxicogenomics Database `_ .\nData are installed in a (local or remte) RDBMS enabling bioinformatic algorithms very fast response times\nto sophisticated queries and high flexibility by using SQLAlchemy database layer.\nPyCTD is developed by the\n`Department of Bioinformatics `_\nat the Fraunhofer Institute for Algorithms and Scientific Computing\n`SCAI `_\nFor more in for information about CTD go to\n`this section in the documentation `_.\n\n|er_model|\n\nThis development is supported by following `IMI `_ projects:\n\n- `AETIONOMY `_ and\n- `PHAGO `_.\n\n|imi_logo| |aetionomy_logo| |phago_logo| |scai_logo|\n\nSupported Databases\n-------------------\n\n`PyCTD` uses `SQLAlchemy `_ to cover a wide spectrum of RDMSs\n(Relational database management system). For best performance MySQL or MariaDB is recommended. But if you have no\npossibility to install software on your system SQLite - which needs no further\ninstallation - also works. Following RDMSs are supported (by SQLAlchemy):\n\n1. Firebird\n2. Microsoft SQL Server\n3. MySQL / `MariaDB `_\n4. Oracle\n5. PostgreSQL\n6. SQLite\n7. Sybase\n\nGetting Started\n---------------\nThis is a quick start tutorial for impatient.\n\nInstallation |pypi_version| |python_versions|\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nPyCTD can be installed with `pip `_.\n\n.. code-block:: bash\n\n pip install pyctd\n\nIf you fail because you have no rights to install use superuser (sudo on Linux before the commend) or ...\n\n.. code-block:: bash\n\n pip install --user pyctd\n\nIf you want to make sure you are installing this under python3 use ...\n\n.. code-block:: bash\n\n python3 -m pip install pyctd\n\nSQLite\n~~~~~~\n.. note:: If you want to use SQLite as your database system, because you ...\n\n - have no possibility to use RDMSs like MySQL/MariaDB\n - just test pyctd, but don't want to spend time in setting up a database\n\n skip the next *MySQL/MariaDB setup* section. But in general we recommend MySQL or MariaDB as your RDBMS.\n\nIf you don't know what all that means skip the section *MySQL/MariaDB setup*.\n\nDon't worry! You can always later change the configuration. For more information about\nchanging database system later go to the subtitle *Changing database configuration*\n`Changing database configuration `_\nin the documentation on readthedocs.\n\nMySQL/MariaDB Setup\n~~~~~~~~~~~~~~~~~~~\nLog in MySQL as root user and create a new database, create a user, assign the rights and flush privileges.\n\n.. code-block:: mysql\n\n CREATE DATABASE pyctd CHARACTER SET utf8 COLLATE utf8_general_ci;\n GRANT ALL PRIVILEGES ON pyctd.* TO 'pyctd_user'@'%' IDENTIFIED BY 'pyctd_passwd';\n FLUSH PRIVILEGES;\n\nStart a python shell and set the MySQL configuration. If you have not changed anything in the SQL statements ...\n\n.. code-block:: python\n\n import pyctd\n pyctd.set_mysql_connection()\n\nIf you have used you own settings, please adapt the following command to you requirements.\n\n.. code-block:: python\n\n import pyctd\n pyctd.set_mysql_connection(host='localhost', user='pyctd_user', passwd='pyctd_passwd', db='pyctd')\n\nUpdating\n~~~~~~~~\nThe updating process will download the files provided by the CTD team on the\n`download page `_\n\n.. warning:: Please note that download files needs 1,5Gb of disk space and the update takes ~2h (depending on your system)\n\n.. code-block:: python\n\n import pyctd\n pyctd.update()\n\nExample Query\n~~~~~~~~~~~~~\n.. code-block:: python\n\n >>> query = pyctd.query()\n >>> results = query.get_chem_gene_interaction_actions(gene_name='APP', interaction_action='meman%', limit=1)\n >>> first_result = r\n >>> r.chemical\n Memantine\n >>> r.pubmed_ids\n [21290839]\n >>> r.chemical.drugbank_ids\n [DB014043]\n\n\nMore Information\n----------------\nSee the `installation documentation `_ for more advanced\ninstructions. Also, check the change log at :code:`CHANGELOG.rst`.\n\nCTD Tools and License (use of data)\n-----------------------------------\nCTD provides also many online `query interfaces `_ and\n`tools to analyse data `_ on their website.\n\nPlease be aware of the `CTD license `_ which allows the use of data only for\nresearch and educational purposes. Medical treatment decisions should not be made based on the information in CTD.\n\nAny reproduction or use for commercial purpose is prohibited without the prior express written permission of the\nMDI Biological Laboratory and NC State University.\n\n\nLinks\n-----\nComparative Toxicogenomics Database (CTD)\n\n- `CTD website `_\n- `All CTD publications `_\n- `CTD download page `_\n\nPyCTD\n\n- Documented on `Read the Docs `_\n- Versioned on `GitHub `_\n- Tested on `Travis CI `_\n- Distributed by `PyPI `_\n- Chat on `Gitter `_\n\n.. |stable_build| image:: https://travis-ci.org/cebel/pyctd.svg?branch=master\n :target: https://travis-ci.org/cebel/pyctd\n :alt: Stable Build Status\n\n.. |stable_documentation| image:: https://readthedocs.org/projects/pyctd/badge/?version=latest\n :target: http://pyctd.readthedocs.io/en/latest/\n :alt: Development Documentation Status\n\n.. |pypi_license| image:: https://img.shields.io/pypi/l/PyCTD.svg\n :alt: Apache 2.0 License\n\n.. |python_versions| image:: https://img.shields.io/pypi/pyversions/PyCTD.svg\n :alt: Stable Supported Python Versions\n\n.. |pypi_version| image:: https://img.shields.io/pypi/v/PyCTD.svg\n :alt: Current version on PyPI\n\n.. |phago_logo| image:: https://owncloud.scai.fraunhofer.de/index.php/apps/files_sharing/ajax/publicpreview.php?x=1920&y=562&a=true&file=phago-logo.jpg&t=7llp11KwSiuXYOh&scalingup=0\n :target: https://www.imi.europa.eu/content/phago\n :alt: PHAGO project logo\n\n.. |aetionomy_logo| image:: https://owncloud.scai.fraunhofer.de/index.php/apps/files_sharing/ajax/publicpreview.php?x=1920&y=562&a=true&file=aetionomy-logo.png&t=5ClUGTZRAYkeb7m&scalingup=0\n :target: http://www.aetionomy.eu/en/vision.html\n :alt: AETIONOMY project logo\n\n.. |imi_logo| image:: https://owncloud.scai.fraunhofer.de/index.php/apps/files_sharing/ajax/publicpreview.php?x=1920&y=562&a=true&file=imi-logo.png&t=Uvw79bTxGyd07oo&scalingup=0\n :target: https://www.imi.europa.eu/\n :alt: IMI project logo\n\n.. |scai_logo| image:: https://owncloud.scai.fraunhofer.de/index.php/apps/files_sharing/ajax/publicpreview.php?x=1920&y=562&a=true&file=scai-logo.png&t=fyJo2GzFDLNypho&scalingup=0\n :target: https://www.scai.fraunhofer.de/en/business-research-areas/bioinformatics.html\n :alt: SCAI project logo\n\n.. |er_model| image:: https://owncloud.scai.fraunhofer.de/index.php/apps/files_sharing/ajax/publicpreview.php?x=1920&y=562&a=true&file=pyctd_er_model.png&t=QUm8KPPnNGoH8wp&scalingup=0\n :target: http://pyctd.readthedocs.io/en/latest/\n :alt: Entity relationship model", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cebel/pyctd", "keywords": "Toxicogenomics,Database,Bioinformatics,Human health", "license": "Apache 2.0 License", "maintainer": "", "maintainer_email": "", "name": "PyCTD", "package_url": "https://pypi.org/project/PyCTD/", "platform": "", "project_url": "https://pypi.org/project/PyCTD/", "project_urls": { "Homepage": "https://github.com/cebel/pyctd" }, "release_url": "https://pypi.org/project/PyCTD/0.5.9/", "requires_dist": null, "requires_python": "", "summary": "Importing and querying CTD", "version": "0.5.9" }, "last_serial": 3061187, "releases": { "0.5.7": [ { "comment_text": "", "digests": { "md5": "dfc7517f13c0686660cebf1da5b5233f", "sha256": "942eb27dda3aa871815750c710900b307df227efb70a3fc3b6af46459cd158ff" }, "downloads": -1, "filename": "PyCTD-0.5.7-py3-none-any.whl", "has_sig": false, "md5_digest": "dfc7517f13c0686660cebf1da5b5233f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28355, "upload_time": "2017-06-02T06:49:38", "url": "https://files.pythonhosted.org/packages/8d/d5/c2aceff0343382b41e5d38da816aa251d60679d684cca8dfa6fbaed984ac/PyCTD-0.5.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "127a10585ce38fbad4ad36e50122f122", "sha256": "346f6269d2c650f914ce8bedf4abd4c0f11eb413c0e931374daf5a02dae42c05" }, "downloads": -1, "filename": "PyCTD-0.5.7.tar.gz", "has_sig": false, "md5_digest": "127a10585ce38fbad4ad36e50122f122", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 945054, "upload_time": "2017-06-02T06:49:41", "url": "https://files.pythonhosted.org/packages/a0/68/01ba8890d540bbc2366ce2153d06df36ea724536249aa3ed7116144c35d8/PyCTD-0.5.7.tar.gz" } ], "0.5.9": [ { "comment_text": "", "digests": { "md5": "b2e66911c149969351fcf19238215480", "sha256": "aee7cf888f1f7b485cab1627b442633ad2cae88a2a1be5001be79e41d8f12a3b" }, "downloads": -1, "filename": "PyCTD-0.5.9.tar.gz", "has_sig": false, "md5_digest": "b2e66911c149969351fcf19238215480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 948298, "upload_time": "2017-07-31T12:17:27", "url": "https://files.pythonhosted.org/packages/d6/a6/39edb8b0f69a5790230a7a4a4405e94ccac58fb1f570fe21b4660d9d5c0d/PyCTD-0.5.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b2e66911c149969351fcf19238215480", "sha256": "aee7cf888f1f7b485cab1627b442633ad2cae88a2a1be5001be79e41d8f12a3b" }, "downloads": -1, "filename": "PyCTD-0.5.9.tar.gz", "has_sig": false, "md5_digest": "b2e66911c149969351fcf19238215480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 948298, "upload_time": "2017-07-31T12:17:27", "url": "https://files.pythonhosted.org/packages/d6/a6/39edb8b0f69a5790230a7a4a4405e94ccac58fb1f570fe21b4660d9d5c0d/PyCTD-0.5.9.tar.gz" } ] }