{ "info": { "author": "Vladimir Rynkov", "author_email": "vrynkov@ucsd.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "==========================\nNDEx STRING Content Loader\n==========================\n\n\n.. image:: https://img.shields.io/pypi/v/ndexstringloader.svg\n :target: https://pypi.python.org/pypi/ndexstringloader\n\n.. image:: https://img.shields.io/travis/vrynkov/ndexstringloader.svg\n :target: https://travis-ci.org/ndexcontent/ndexstringloader\n\n.. image:: https://coveralls.io/repos/github/ndexcontent/ndexstringloader/badge.svg?branch=master\n :target: https://coveralls.io/github/ndexcontent/ndexstringloader?branch=master\n\n.. image:: https://readthedocs.org/projects/ndexstringloader/badge/?version=latest\n :target: https://ndexstringloader.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\nPython application for loading STRING data into `NDEx `_.\n\nThis tool downloads and unpacks the `STRING `_ files below\n\n `9606.protein.links.full.v11.0.txt.gz `_\n\n `human.name_2_string.tsv.gz `_\n\n `human.entrez_2_string.2018.tsv.gz `_\n\n `human.uniprot_2_string.2018.tsv.gz `_\n\ngenerates a new tsv file, transforms it to CX, and uploads it to NDEx server. Duplicate edges\n(edges that have the same Source and Target nodes and the same value of :code:`combined_score`)\nare included to the generated tsv and CX files only once. Name of the newly generated network includes\nthe value of :code:`cutoffscore` argument, for example,\n:code:`STRING - Human Protein Links - High Confidence (Score >= 0.7)`. In case user didn't specify :code:`--update UUID`\nargument, then the network with this name gets over-written in case if already exists on NDEx server;\notherwise, a new network is created.\nSpecifying :code:`--update UUID` command line argument will over-write network with this UUID if it is found.\nIf not, then user is asked if (s)he wants to create a new network. When network is updated, only edges and nodes are\nchanged; network attributes are not modified.\n\n\n**1\\)** Below is an example of a record\nfrom `9606.protein.links.full.v11.0.txt.gz `_\n\n.. code-block::\n\n 9606.ENSP00000261819 9606.ENSP00000353549 0 0 0 0 0 102 90 987 260 900 0 754 622 999\n\n\nTo generate a STRING network, the loader reads rows from that file one by one and compares the value of the last\ncolumn :code:`combined_score` with the value :code:`cutoffscore` argument. The row is not added to the network generated in case\n:code:`combined_score` is less than the commad-line argument :code:`cutoffscore`.\n\n\n**2\\)** If :code:`combined_score` is no than less :code:`cutoffscore`, the loader process two first columns\n\n.. code-block::\n\n column 1 - protein1 (9606.ENSP00000261819)\n column 2 - protein2 (9606.ENSP00000353549)\n\nWhen processing first column :code:`protein1`, the script\n\nreplaces :code:`Ensembl Id` with a :code:`display name`, for example :code:`9606.ENSP00000261819` becomes :code:`ANAPC5`. Mapping of\ndisplay names to :code:`Enseml Ids` is found in\n`human.name_2_string.tsv.gz `_\n\nuses `human.uniprot_2_string.2018.tsv.gz `_\nto create :code:`represents` value. For example, :code:`represents` for :code:`9606.ENSP00000261819` is :code:`uniprot:Q9UJX4`\n\nuses `human.entrez_2_string.2018.tsv.gz `_\nto create list of aliases for the current protein. Thus, list of aliases for :code:`9606.ENSP00000261819` is\n:code:`ncbigene:51433|ensembl:ENSP00000261819`\n\n**3\\)** The second column :code:`protein2` is processed the same way as :code:`column 1`.\n\n**4\\)** In the generated tsv file :code:`9606.protein.links.tsv`, :code:`protein1` and :code:`protein2` values from the original file are replaced with\n\n.. code-block::\n\n protein_display_name_1 represents_1 alias_1 protein_display_name_2 represents_2 alias_2\n\nSo, the original\n\n.. code-block::\n\n 9606.ENSP00000261819 9606.ENSP00000353549 0 0 0 0 0 102 90 987 260 900 0 754 622 999\n\nbecomes\n\n.. code-block::\n\n ANAPC5 uniprot:Q9UJX4 ncbigene:51433|ensembl:ENSP00000261819 CDC16 uniprot:Q13042 ncbigene:8881|ensembl:ENSP00000353549 0 0 0 0 0 102 90 987 260 900 0 754 622 999\n\n\n**5\\)** The generated tsv file :code:`9606.protein.links.tsv` is then transformed to CX :code:`9606.protein.links.cx`.\nThe default style defined in :code:`style.cx` distributed with this loader is applied to the\ngenerated network in case neither :code:`--style` nor :code:`--template` is specified.\nUser can specify style template file with either :code:`--style` argument or\nstyle template network UUID :code:`--template UUID_of_style_template_network`.\nSpecifying both :code:`--template` and :code:`--style` is not allowed.\n\n**6\\)** :code:`9606.protein.links.cx` is then uploaded to NDEx server either replacing\nan existing network (in case :code:`--update UUID` is specified or network with this name already exists),\nor creating a new network.\n\n\nDependencies\n------------\n\n* ndex2\n* ndexutil\n\nCompatibility\n-------------\n\n* Python 3.3+\n\nInstallation\n------------\n\n.. code-block::\n\n git clone https://github.com/ndexcontent/ndexstringloader\n cd ndexstringloader\n make dist\n pip install dist/ndexloadstring*whl\n\n\nRun **make** command with no arguments to see other build/deploy options including creation of Docker image\n\n.. code-block::\n\n make\n\nOutput:\n\n.. code-block::\n\n clean remove all build, test, coverage and Python artifacts\n clean-build remove build artifacts\n clean-pyc remove Python file artifacts\n clean-test remove test and coverage artifacts\n lint check style with flake8\n test run tests quickly with the default Python\n test-all run tests on every Python version with tox\n coverage check code coverage quickly with the default Python\n docs generate Sphinx HTML documentation, including API docs\n servedocs compile the docs watching for changes\n testrelease package and upload a TEST release\n release package and upload a release\n dist builds source and wheel package\n install install the package to the active Python's site-packages\n dockerbuild build docker image and store in local repository\n dockerpush push image to dockerhub\n\n\nConfiguration\n-------------\n\nThe **ndexloadstring.py** requires a configuration file to be created.\nThe default path for this configuration is :code:`~/.ndexutils.conf` but can be overridden with\n:code:`--conf` flag.\n\n**Configuration file**\n\nNetworks listed in **[network_ids]** section need to be visible to the **user**\n\n.. code-block::\n\n [ndexstringloader]\n user = joe123\n password = somepassword123\n server = dev.ndexbio.org\n\n\nNeeded files\n------------\n\nLoad plan is required for running this script. **string_plan.json** found at **ndexstringloader/ndexstringloader** can be used for this purpose.\n\n\nUsage\n-----\n\nFor information invoke :code:`ndexloadstring.py -h`\n\n**Example usage**\n\nHere is how this command can be run for **dev** and **prod** targets:\n\n.. code-block::\n\n ndexloadstring.py --profile dev tmpdir/\n\n ndexloadstring.py --profile prod tmpdir/\n\n\nVia Docker\n~~~~~~~~~~~~~~~~~~~~~~\n\n**Example usage**\n\n**TODO:** Add information about example usage\n\n\n.. code-block::\n\n docker run -v `pwd`:`pwd` -w `pwd` vrynkov/ndexstringloader:0.1.0 ndexloadstring.py --conf conf # TODO Add other needed arguments here\n\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.2.3 (2019-09-13)\n------------------\n* If user loads the entire STRING network (i.e., runs the script with --cutoffscore 0), the name of the resulting netwpork should be \"STRING - Human Protein Links\", not \"STRING - Human Protein Links - High Confidence\".\n\n0.2.2 (2019-09-12)\n------------------\n* Added new featured specified by UD-577 Quick improvement for new String loader (added optional --update argument that allows to specify the UUID of a target network to update; added optional --template argument that allows to specify the UUID of a target network to use as style template, the update operation now only changes nodes and edges, but leaves network properties untouched).\n\n0.2.1 (2019-08-23)\n------------------\n* Improved README file.\n* Added new JUnit tests (JUnit test coverage is 87%).\n\n0.2.0 (2019-07-26)\n------------------\n* Removed duplicate edges. Every pair of connected nodes in STRING networks had the same edge duplicated (one edge going from A to B, and another going from B to A). Since edges in STRING are not directed, we can safely remove half of them.\n\n* Added new arguments to command line:\n optional --cutoffscore (default is 0.7) - used to filter on combined_score column. To include edges with combined_score of 800 or higher, --cutoffscore 0.8 should be specified\n\n required --datadir specifies a working directory where STRING files will be downloaded to and processed style.cx file that contains style is supplied with the STRING loader and used by default. It can be overwritten with --style argument.\n\n0.1.0 (2019-03-13)\n------------------\n* First release on PyPI.\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/ndexcontent/ndexstringloader", "keywords": "ndexstringloader", "license": "BSD license", "maintainer": "", "maintainer_email": "", "name": "ndexstringloader", "package_url": "https://pypi.org/project/ndexstringloader/", "platform": "", "project_url": "https://pypi.org/project/ndexstringloader/", "project_urls": { "Homepage": "https://github.com/ndexcontent/ndexstringloader" }, "release_url": "https://pypi.org/project/ndexstringloader/0.2.3/", "requires_dist": [ "ndex2", "ndexutil" ], "requires_python": "", "summary": "Loads STRING data into NDEx", "version": "0.2.3" }, "last_serial": 5826576, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f3fd196f027c475c4fce26ffa227c8f6", "sha256": "1d2d93eca7e6463e28815af391f40172fd50062167adbf5d9a20f9a7f165b21d" }, "downloads": -1, "filename": "ndexstringloader-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3fd196f027c475c4fce26ffa227c8f6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17849, "upload_time": "2019-06-20T23:01:38", "url": "https://files.pythonhosted.org/packages/d7/15/7c8c048de0f3f98f3085ac584289c5ebd21023ecdb7e7d2810725b10b4c3/ndexstringloader-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a7906c8d973a86acadcb934bd53d8f1", "sha256": "fe77304bc6b5d0759ef4be955de18934cfb802c27221d5333f748dd3e909ab59" }, "downloads": -1, "filename": "ndexstringloader-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6a7906c8d973a86acadcb934bd53d8f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17778, "upload_time": "2019-06-20T23:01:41", "url": "https://files.pythonhosted.org/packages/68/87/ec977d38dcab03ff3c99569680ef70964395c38b3c22ebb82e25532ba761/ndexstringloader-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "cf62f72c911e3633558ae8bf7fcb30fa", "sha256": "a524b93bcd71e80faf11265756e20647fa5e7f5393e8412fbdc743dc610310b8" }, "downloads": -1, "filename": "ndexstringloader-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cf62f72c911e3633558ae8bf7fcb30fa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 69839, "upload_time": "2019-07-27T00:23:53", "url": "https://files.pythonhosted.org/packages/a8/04/9ba72e758d3e0110a7cac2951a3b51e357aa791eebe1d5a4353aa4531f47/ndexstringloader-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a78c2a5d9709f16aa86817e6185473fe", "sha256": "dd1d85fa66fd223ac65ffa97ac2b46cf2610e119e4677df83e143896f889a43a" }, "downloads": -1, "filename": "ndexstringloader-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a78c2a5d9709f16aa86817e6185473fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31595, "upload_time": "2019-07-27T00:23:54", "url": "https://files.pythonhosted.org/packages/e2/3d/cf175513cd4daa15bb3d1f87b6f5463387773e830d750b8afec9acfdb258/ndexstringloader-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "370e6e4a664962b6558db0766a29cdf1", "sha256": "365e5c0ab3e5d6a3a7b733ede9cc1368005eeb42a205b78f0ae1d02b06f676bf" }, "downloads": -1, "filename": "ndexstringloader-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "370e6e4a664962b6558db0766a29cdf1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 72221, "upload_time": "2019-08-23T22:12:32", "url": "https://files.pythonhosted.org/packages/78/b6/a00482490aff35c925fb1457a55d472b0fe6ca47f005cfd3b0b1a76c6fd2/ndexstringloader-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8f09ddd3de7eaefcfc3eab4b84ac0995", "sha256": "4c11c1f7a5ac921446612dd2f21dfa0e0369737fc8fb474abc5ac66ca7cf50eb" }, "downloads": -1, "filename": "ndexstringloader-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8f09ddd3de7eaefcfc3eab4b84ac0995", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34907, "upload_time": "2019-08-23T22:12:33", "url": "https://files.pythonhosted.org/packages/62/66/9feb630ef50714b2f2c53191546e413ab382a468cffb31115eac789d9fba/ndexstringloader-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "17a84a51ac369009777d5ef7c65cf0f8", "sha256": "005d2670fc3299913fecd256cbf924d46816b1f83dc591b6e0e2ea2158c0ac5f" }, "downloads": -1, "filename": "ndexstringloader-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "17a84a51ac369009777d5ef7c65cf0f8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 75001, "upload_time": "2019-09-12T18:34:36", "url": "https://files.pythonhosted.org/packages/f4/a1/2ce7685f31f9a337394e8497a5e9224ab004384f6e40d2ff1d1103543c31/ndexstringloader-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1235d209daf80020fd6a04b7946e0d15", "sha256": "711a8e8263fbab696b6718a595c815d116c209841961a84a94f4128627b293ab" }, "downloads": -1, "filename": "ndexstringloader-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1235d209daf80020fd6a04b7946e0d15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37579, "upload_time": "2019-09-12T18:34:38", "url": "https://files.pythonhosted.org/packages/3c/a9/54b75ffb433d6e63055a0e6dd688e53acb5cfdb8e7ba9809a9bef5493458/ndexstringloader-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "4b7080640fac512b27d222d6facc313d", "sha256": "3ae8ec138c9a61161acdc3957cb8448421104376d37ee8b48dbd4cac99e1a414" }, "downloads": -1, "filename": "ndexstringloader-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b7080640fac512b27d222d6facc313d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 73049, "upload_time": "2019-09-13T16:10:03", "url": "https://files.pythonhosted.org/packages/b7/96/a101ab69de94013c09ad4b513d355a6c6f8d44750de7c7c9f541f948e066/ndexstringloader-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea4e926287c02a824aa8db95d062321f", "sha256": "d5d81275749f9740bf48a49c8a0d9de1129914d0cf54a54e3de69d7444199d98" }, "downloads": -1, "filename": "ndexstringloader-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ea4e926287c02a824aa8db95d062321f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36257, "upload_time": "2019-09-13T16:10:04", "url": "https://files.pythonhosted.org/packages/95/b7/1db5190f663e98b491059071b8114838ccd2299234e3812f7b4ab8e2328e/ndexstringloader-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b7080640fac512b27d222d6facc313d", "sha256": "3ae8ec138c9a61161acdc3957cb8448421104376d37ee8b48dbd4cac99e1a414" }, "downloads": -1, "filename": "ndexstringloader-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b7080640fac512b27d222d6facc313d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 73049, "upload_time": "2019-09-13T16:10:03", "url": "https://files.pythonhosted.org/packages/b7/96/a101ab69de94013c09ad4b513d355a6c6f8d44750de7c7c9f541f948e066/ndexstringloader-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea4e926287c02a824aa8db95d062321f", "sha256": "d5d81275749f9740bf48a49c8a0d9de1129914d0cf54a54e3de69d7444199d98" }, "downloads": -1, "filename": "ndexstringloader-0.2.3.tar.gz", "has_sig": false, "md5_digest": "ea4e926287c02a824aa8db95d062321f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36257, "upload_time": "2019-09-13T16:10:04", "url": "https://files.pythonhosted.org/packages/95/b7/1db5190f663e98b491059071b8114838ccd2299234e3812f7b4ab8e2328e/ndexstringloader-0.2.3.tar.gz" } ] }