{ "info": { "author": "Pedro C. de Siracusa", "author_email": "pedrosiracusa@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "Caryocar\n========\n\nCaryocar is a Python package for building Species-Collector Networks (SCNs) and Collector CoWorking Networks(CWNs) models from species occurrence data, as introduced in my [MSc thesis](https://lncc-netsci.github.io/pedrocs/).\nSCNs and CWNs extend the social network analytics and can be used for understanding the social structure behind biological collections.\nThis package is built on top of [NetworkX](https://github.com/networkx/networkx).\n\n\n### Supporting documents\n* New perspectives on analyzing data from biological collections based on social network analytics [[MSc thesis](https://tede.lncc.br/handle/tede/279)].\n* On the social structure behind biological collections [[Preprint](https://www.biorxiv.org/content/early/2018/06/08/341297)].\n* Package documentation coming soon...\n\n\nExample Usage\n-------------\nCreate a Species-Collector Network (SCN) from a list of collectors and species:\n\n >>> cols=[ ['col1','col2','col3'],\n ['col1','col2'],\n ['col2','col3'],\n ['col4','col5'],\n ['col4'],\n ['col5','col4'] ]\n\n >>> spp=['sp1','sp2','sp3','sp2','sp3','sp2']\n\n >>> scn = SpeciesCollectorsNetwork( species=spp, collectors=cols )\n\n >>> scn.nodes(data=True)\n { 'sp1': {'bipartite': 1, 'count': 1}, \n 'col1': {'bipartite': 0, 'count': 2}, \n 'col2': {'bipartite': 0, 'count': 3}, \n 'col3': {'bipartite': 0, 'count': 2}, \n 'sp2': {'bipartite': 1, 'count': 3}, \n 'sp3': {'bipartite': 1, 'count': 2}, \n 'col4': {'bipartite': 0, 'count': 3}, \n 'col5': {'bipartite': 0, 'count': 2} }\n\n >>> scn.edges(data=True)\n [ ('sp1', 'col1', {'count': 1}), \n ('sp1', 'col2', {'count': 1}), \n ('sp1', 'col3', {'count': 1}), \n ('col1', 'sp2', {'count': 1}), \n ('col2', 'sp2', {'count': 1}), \n ('col2', 'sp3', {'count': 1}), \n ('col3', 'sp3', {'count': 1}), \n ('sp2', 'col4', {'count': 2}), \n ('sp2', 'col5', {'count': 2}), \n ('sp3', 'col4', {'count': 1}) ] \n\n\n\nCreate a Collector CoWorking Network (CWN) from a list of collector cliques:\n\n\t\t>>> collectors = [ ['a','b','c'], ['d','e'], ['a','c'] ]\n >>> cwn = CoworkingNetwork(cliques=collectors)\n\n >>> cwn.nodes(data=True)\n { 'a': {'count': 2}, \n 'b': {'count': 1}, \n 'c': {'count': 2}, \n 'd': {'count': 1}, \n 'e': {'count': 1} } \n\n >>> cwn.edges(data=True)\n [ ('a', 'b', {'count': 1, 'taxons': None, 'weight_hyperbolic': 0.5}), \n ('a', 'c', {'count': 2, 'taxons': None, 'weight_hyperbolic': 1.5}), \n ('b', 'c', {'count': 1, 'taxons': None, 'weight_hyperbolic': 0.5}), \n ('d', 'e', {'count': 1, 'taxons': None, 'weight_hyperbolic': 1.0}) ]\n\n\nInstall\n-------\n\nThis package is still experimental, and should ideally be run from a conda virtual environment, which is specified in the `environment.yml` file. In order to create the virtual environment clone this repository, make sure you have [conda](https://conda.io/docs/) installed and use one of the following commands, from the root of the repository:\n\n $ conda env create -f environment.yml\n\nThen you should activate it with the following command:\n\n* On Linux:\n\n\n $ source activate caryocar\n\n\n* On Windows:\n\n\n $ activate caryocar\n\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/pedrosiracusa/caryocar", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "caryocar", "package_url": "https://pypi.org/project/caryocar/", "platform": "", "project_url": "https://pypi.org/project/caryocar/", "project_urls": { "Homepage": "https://github.com/pedrosiracusa/caryocar" }, "release_url": "https://pypi.org/project/caryocar/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "A Python package for building SCN and CWN models.", "version": "0.0.1" }, "last_serial": 4514441, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "eff5942341f275d614b1a4f24ad533f4", "sha256": "e410a89432b39697443d2dfbd20ecb12af6fe68b993e76bd88d3221e727335fa" }, "downloads": -1, "filename": "caryocar-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "eff5942341f275d614b1a4f24ad533f4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19868, "upload_time": "2018-11-21T22:01:49", "url": "https://files.pythonhosted.org/packages/d9/91/73bb84c4706c1c0a1c6007c3c925cb88b002e15aaf0a952aaf870745b407/caryocar-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04f9bf07b28c6d976088bae0901039c2", "sha256": "a826837ef70f2a7c83443ca048271f2ae1b53f39f9613f28febcb11bff420dae" }, "downloads": -1, "filename": "caryocar-0.0.1.tar.gz", "has_sig": false, "md5_digest": "04f9bf07b28c6d976088bae0901039c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15677, "upload_time": "2018-11-21T22:01:52", "url": "https://files.pythonhosted.org/packages/86/69/0cea33e01ddbe656c1064855c7af9bafccdcdec7106cab8066f0053413f1/caryocar-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eff5942341f275d614b1a4f24ad533f4", "sha256": "e410a89432b39697443d2dfbd20ecb12af6fe68b993e76bd88d3221e727335fa" }, "downloads": -1, "filename": "caryocar-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "eff5942341f275d614b1a4f24ad533f4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19868, "upload_time": "2018-11-21T22:01:49", "url": "https://files.pythonhosted.org/packages/d9/91/73bb84c4706c1c0a1c6007c3c925cb88b002e15aaf0a952aaf870745b407/caryocar-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04f9bf07b28c6d976088bae0901039c2", "sha256": "a826837ef70f2a7c83443ca048271f2ae1b53f39f9613f28febcb11bff420dae" }, "downloads": -1, "filename": "caryocar-0.0.1.tar.gz", "has_sig": false, "md5_digest": "04f9bf07b28c6d976088bae0901039c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15677, "upload_time": "2018-11-21T22:01:52", "url": "https://files.pythonhosted.org/packages/86/69/0cea33e01ddbe656c1064855c7af9bafccdcdec7106cab8066f0053413f1/caryocar-0.0.1.tar.gz" } ] }