{ "info": { "author": "Gijs Kant", "author_email": "gijs@thehyve.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "################################################################################\nExample ontology to TranSMART loader\n################################################################################\n\n|Build status| |codecov| |pypi| |downloads|\n\n.. |Build status| image:: https://travis-ci.org/thehyve/python_ontology2transmart.svg?branch=master\n :alt: Build status\n :target: https://travis-ci.org/thehyve/python_ontology2transmart/branches\n.. |codecov| image:: https://codecov.io/gh/thehyve/python_ontology2transmart/branch/master/graph/badge.svg\n :alt: codecov\n :target: https://codecov.io/gh/thehyve/python_ontology2transmart\n.. |pypi| image:: https://img.shields.io/pypi/v/ontology2transmart.svg\n :alt: PyPI\n :target: https://pypi.org/project/ontology2transmart/\n.. |downloads| image:: https://img.shields.io/pypi/dm/ontology2transmart.svg\n :alt: PyPI - Downloads\n :target: https://pypi.org/project/ontology2transmart/\n\nThis package contains a mapper that reads ontologies from DIMDI_ (Deutsche Institut f\u00fcr Medizinische Dokumentation und Information)\nand translates them to the data model of the TranSMART_ platform,\nan open source data sharing and analytics platform for translational biomedical research.\n\nIt also provides a utility that applies the mapper and writes the translated data to tab-separated files\nthat can be loaded into a TranSMART database using the transmart-copy_ tool.\n\n\u26a0\ufe0f Note: this is a very preliminary version, still under development.\nIssues can be reported at https://github.com/thehyve/python_ontology2transmart/issues.\n\n.. _DIMDI: https://www.dimdi.de\n.. _TranSMART: https://github.com/thehyve/transmart_core\n.. _transmart-copy: https://github.com/thehyve/transmart-core/tree/dev/transmart-copy\n.. _transmart-loader: https://pypi.org/project/transmart-loader\n\n\nInstallation\n------------\n\nThe package requires Python 3.6.\n\nTo install ``ontology2transmart``, do:\n\n.. code-block:: bash\n\n pip install ontology2transmart\n\nOr from source:\n\n.. code-block:: bash\n\n git clone https://github.com/thehyve/python_ontology2transmart.git\n cd python_ontology2transmart\n pip install .\n\n\nRun tests (including coverage) with:\n\n.. code-block:: bash\n\n python setup.py test\n\n\nUsage\n-----\n\nRead ontology from a collection of TSV files from `DIMDI`_ and write the output in transmart-copy\nformat to ``/path/to/output``. The output directory should be\nempty of not existing (then it will be created).\n\n.. code-block:: bash\n\n ontology2transmart /path/to/output\n\nParameters:\n\n:``system``: Unique identifier for the ontology\n:``chapters``: Semicolon-separated file with chapters\n:``groups``: Semicolon-separated file with groups\n:``codes``: Semicolon-separated file with codes\n:``/path/to/output``: Output directory\n\nExample: the ICD-10-GM (German modification of ICD-10) is available at icd10gm2019syst-meta.zip_.\n\n.. _icd10gm2019syst-meta.zip: https://www.dimdi.de/dynamic/.downloads/klassifikationen/icd-10-gm/version2019/icd10gm2019syst-meta.zip\n\n.. code-block:: bash\n\n # Unzip and navigate to the classification directory\n mkdir icd10gm2019\n cd icd10gm2019\n unzip ../icd10gm2019syst-meta.zip\n cd Klassifikationsdateien\n # create an output directory\n mkdir output\n # apply the mapping\n ontology2transmart http://dimdi.de/icd10gm2019 icd10gm2019syst_kapitel.txt icd10gm2019syst_gruppen.txt icd10gm2019syst_kodes.txt output\n\nThis generates the directories ``i2b2metadata`` and ``i2b2demodata`` in the ``output`` directory.\nThe generated data can be loaded using transmart-copy_:\n\n.. code-block:: console\n\n # Download transmart-copy:\n curl -f -L https://repo.thehyve.nl/service/local/repositories/releases/content/org/transmartproject/transmart-copy/17.1-HYVE-5.9-RC3/transmart-copy-17.1-HYVE-5.9-RC3.jar -o transmart-copy.jar\n # Load data\n PGUSER=tm_cz PGPASSWORD=tm_cz java -jar transmart-copy.jar -d output\n\n\nLicense\n-------\n\nCopyright (c) 2019 The Hyve B.V.\n\nThe ontology to TranSMART loader is licensed under the MIT License. See the file ``_.\n\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thehyve/python_ontology2transmart", "keywords": "ontology2transmart", "license": "GNU General Public License v3 or later", "maintainer": "", "maintainer_email": "", "name": "ontology2transmart", "package_url": "https://pypi.org/project/ontology2transmart/", "platform": "", "project_url": "https://pypi.org/project/ontology2transmart/", "project_urls": { "Homepage": "https://github.com/thehyve/python_ontology2transmart" }, "release_url": "https://pypi.org/project/ontology2transmart/0.1.1/", "requires_dist": [ "click (>=7.0)", "transmart-loader (>=0.1.2)", "prospector[with_pyroma] ; extra == 'dev'", "yapf ; extra == 'dev'", "isort ; extra == 'dev'" ], "requires_python": ">=3.6.0", "summary": "Example ontology to TranSMART loader", "version": "0.1.1" }, "last_serial": 5451901, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3240ae31033b09b0c23e5b949b0b45c6", "sha256": "85cc162d4acd63e11c57d8d9d6b6340573ddfee08d91c81025e8f412e222b767" }, "downloads": -1, "filename": "ontology2transmart-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3240ae31033b09b0c23e5b949b0b45c6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 8135, "upload_time": "2019-05-10T14:18:07", "url": "https://files.pythonhosted.org/packages/ab/1f/2cbfb22453502c59d5990ec74d94881e12b3339fddc85a25b21abc291e31/ontology2transmart-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "71198cad314d6c5f47cc84925aaf7004", "sha256": "95c229943ac8d8ab0f1ba7505afaa114f5654593d95ce0fc14d8e5d7e7b29920" }, "downloads": -1, "filename": "ontology2transmart-0.1.0.tar.gz", "has_sig": false, "md5_digest": "71198cad314d6c5f47cc84925aaf7004", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 7025, "upload_time": "2019-05-10T14:18:10", "url": "https://files.pythonhosted.org/packages/0f/e0/0740436df83afcd34608302020cf35674319d03e27fdc3ae1c51475760d3/ontology2transmart-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "12894951db321694a8e1afa4fb15bb3a", "sha256": "3a6f2b9c098c9fa8c79d0788ac49a1d6f469ed50b20122223f6bed3c6bb87c09" }, "downloads": -1, "filename": "ontology2transmart-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "12894951db321694a8e1afa4fb15bb3a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 8487, "upload_time": "2019-05-14T08:39:16", "url": "https://files.pythonhosted.org/packages/e2/3f/8f5eec2027ec0acb727a9a4273554dd12e864fc6aafbff09f0ea663fb3c4/ontology2transmart-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb299eaf24c2dcbd30ed22dda0d51995", "sha256": "d0ac87373abe9b6ff27ec0dcbfe433b1efc064e222d95001ec217e96c0545619" }, "downloads": -1, "filename": "ontology2transmart-0.1.1.tar.gz", "has_sig": false, "md5_digest": "eb299eaf24c2dcbd30ed22dda0d51995", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 6740, "upload_time": "2019-05-14T08:39:18", "url": "https://files.pythonhosted.org/packages/a6/af/19c24a53d5a960c1486d82cbf64e807a5416a23a7e89e60df84d7d252fb9/ontology2transmart-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "12894951db321694a8e1afa4fb15bb3a", "sha256": "3a6f2b9c098c9fa8c79d0788ac49a1d6f469ed50b20122223f6bed3c6bb87c09" }, "downloads": -1, "filename": "ontology2transmart-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "12894951db321694a8e1afa4fb15bb3a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 8487, "upload_time": "2019-05-14T08:39:16", "url": "https://files.pythonhosted.org/packages/e2/3f/8f5eec2027ec0acb727a9a4273554dd12e864fc6aafbff09f0ea663fb3c4/ontology2transmart-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb299eaf24c2dcbd30ed22dda0d51995", "sha256": "d0ac87373abe9b6ff27ec0dcbfe433b1efc064e222d95001ec217e96c0545619" }, "downloads": -1, "filename": "ontology2transmart-0.1.1.tar.gz", "has_sig": false, "md5_digest": "eb299eaf24c2dcbd30ed22dda0d51995", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 6740, "upload_time": "2019-05-14T08:39:18", "url": "https://files.pythonhosted.org/packages/a6/af/19c24a53d5a960c1486d82cbf64e807a5416a23a7e89e60df84d7d252fb9/ontology2transmart-0.1.1.tar.gz" } ] }