{ "info": { "author": "Max Shinn", "author_email": "maxwell.shinn@yale.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: Medical Science Apps.", "Topic :: Scientific/Engineering :: Physics" ], "description": "# Versatility\n\nThis package implements versatility [(Shinn et al.,\n2017)](https://www.nature.com/articles/s41598-017-03394-5), which\ndescribes how closely affiliated a node is with a network community\nstructure. It is written in Python3, and can only be guaranteed to\nwork there. (This MAY work in Python2 if you `import __future__` but\nthis is untested... see code for details.)\n\nInstall with:\n\n pip3 install versatility\n\nAlternatively, clone the git repo and install with:\n\n python3 setup.py install\n\nDependencies:\n\n- Python3\n- [networkx](https://networkx.github.io/)\n- [Scipy](https://www.scipy.org/) (including numpy and matplotlib)\n- [bctpy](https://github.com/aestrivex/bctpy): The module \"bct\" is\n bctpy, a port of the Brain Connectivity Toolbox to Python. The\n latest version supports Python3, and can be installed most easily\n with \"`pip install bcpty`\".\n\nSee function help for full documentation, but the most useful\nfunctions are:\n\n- `find_nodal_versatility` - Compute the versatility of each node in a\n graph using a specific community detection algorithm.\n- `find_nodal_mean_versatility` - Compute the versatility of each node\n across a spectrum of community detection algorithm parameters (most\n notably the resolution parameter) and find the average.\n- `find_optimal_gamma_curve` - Find the mean and standard error of\n versatility across a spectrum of resolution parameters and\n (optionally) plot the result. This is most useful for finding the\n best resolution parameter, e.g. in [Figure 3c of the original\n paper](https://www.nature.com/articles/s41598-017-03394-5/figures/3).\n\nHere is a quick example to get you started:\n\n import networkx\n from versatility import *\n G = networkx.karate_club_graph()\n find_nodal_mean_versatility(G, find_communities_louvain, processors=2)\n find_nodal_versatility(G, find_communities_louvain, algargs={\"gamma\" : 0.5})\n\nIf you use this code, please cite:\n\n Shinn, M., Romero-Garcia, R., Seidlitz, J., Vasa, F., Vertes, P.,\n Bullmore, E. (2017). Versatility of nodal affiliation to\n communities. Scientific Reports 7: 4273.\n doi:10.1038/s41598-017-03394-5\n\nCopyright 2016-2019 Maxwell Shinn (maxwell.shinn@yale.edu)\nAvailable under the GNU GPLv3.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mwshinn/versatility", "keywords": "", "license": "GPL3", "maintainer": "Max Shinn", "maintainer_email": "maxwell.shinn@yale.edu", "name": "versatility", "package_url": "https://pypi.org/project/versatility/", "platform": "", "project_url": "https://pypi.org/project/versatility/", "project_urls": { "Homepage": "https://github.com/mwshinn/versatility" }, "release_url": "https://pypi.org/project/versatility/1.0.1/", "requires_dist": [ "numpy", "scipy", "matplotlib", "bctpy", "networkx" ], "requires_python": ">=3.5", "summary": "Versatility - find how closely a node in a graph is associated with a community", "version": "1.0.1" }, "last_serial": 5167885, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "85110e7233a5e2d53f562f4c0ca8d1e3", "sha256": "aac123f0f402abe3b2e693dd3acc838c2e3e68dda43ca591ba0344f5670ca868" }, "downloads": -1, "filename": "versatility-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "85110e7233a5e2d53f562f4c0ca8d1e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 9312, "upload_time": "2019-04-20T14:09:00", "url": "https://files.pythonhosted.org/packages/49/ab/7d077540776dcbe9489b3a63982a28f00f2c4bda197bc4a6d3817708bcfe/versatility-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ce9ad1371da24bae9d4bc35613ade86", "sha256": "50ca9363fa4588baef7c3be47d3721ce9dd7fbbb48a4aee77ce9fef4183c88e2" }, "downloads": -1, "filename": "versatility-1.0.tar.gz", "has_sig": false, "md5_digest": "9ce9ad1371da24bae9d4bc35613ade86", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 6785, "upload_time": "2019-04-20T14:09:04", "url": "https://files.pythonhosted.org/packages/4d/ce/34c612d00f7db2fd390b3f280b84c03e21e0def815ed15469c092334b56f/versatility-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3c1b86a6ea55ba3b3b91ff0233607b27", "sha256": "713b69403bc0439ba02eab44545843e74a47fad64dbc682ac620c9418ac082f7" }, "downloads": -1, "filename": "versatility-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3c1b86a6ea55ba3b3b91ff0233607b27", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 7221, "upload_time": "2019-04-20T14:13:03", "url": "https://files.pythonhosted.org/packages/5c/db/accabe704a6fd45617b0dfc4ad996a5cab5fab4ebd62a405333b56ef0132/versatility-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "065e334de595c55b7ab5c876fe58cab2", "sha256": "dcd8df6ebf66d5f5a93f445345092e3e877e9489506b324fcaaf0671373642bd" }, "downloads": -1, "filename": "versatility-1.0.1.tar.gz", "has_sig": false, "md5_digest": "065e334de595c55b7ab5c876fe58cab2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 6794, "upload_time": "2019-04-20T14:13:05", "url": "https://files.pythonhosted.org/packages/82/1c/18e16f8616107a85d2a8545e17347f784f4952c9fbd048cb5fc3204369d5/versatility-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c1b86a6ea55ba3b3b91ff0233607b27", "sha256": "713b69403bc0439ba02eab44545843e74a47fad64dbc682ac620c9418ac082f7" }, "downloads": -1, "filename": "versatility-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "3c1b86a6ea55ba3b3b91ff0233607b27", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 7221, "upload_time": "2019-04-20T14:13:03", "url": "https://files.pythonhosted.org/packages/5c/db/accabe704a6fd45617b0dfc4ad996a5cab5fab4ebd62a405333b56ef0132/versatility-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "065e334de595c55b7ab5c876fe58cab2", "sha256": "dcd8df6ebf66d5f5a93f445345092e3e877e9489506b324fcaaf0671373642bd" }, "downloads": -1, "filename": "versatility-1.0.1.tar.gz", "has_sig": false, "md5_digest": "065e334de595c55b7ab5c876fe58cab2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 6794, "upload_time": "2019-04-20T14:13:05", "url": "https://files.pythonhosted.org/packages/82/1c/18e16f8616107a85d2a8545e17347f784f4952c9fbd048cb5fc3204369d5/versatility-1.0.1.tar.gz" } ] }