{ "info": { "author": "Ad115", "author_email": "a.garcia230395@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering :: Artificial Life", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: Medical Science Apps." ], "description": "==========\nCellSystem\n==========\n\n.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg\n :target: https://saythanks.io/inbox\n\nAn agent-based framework for the simulation of biological cell systems.\n\nThis was created to simulate cancer growth, taking into account nutrients and cell migration while allowing to track mutations, cell division and cell position history to study tumour phylogeny reconstruction algorithms.\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/sidebyside.png\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/spacetime.png\n\n\n------------\nInstallation\n------------\n\nYou can install it from PyPI::\n\n $ pip install cellsystem\n\n\n-------\nExample\n-------\n\nA use case integrated in the repository:\n\n.. code-block:: python\n\n >>> from cellsystem import *\n\n # The cell system will simulate cell growth\n # while tracking the steps in that process.\n >>> system = CellSystem(grid_shape=(100, 100))\n\n # Initialize the first cell\n # in the middle of the grid\n >>> system.seed()\n\n\n New cell 0 added @ (50, 50)\n\n\n # Take 35 steps forward in time\n >>> system.run(steps=30)\n\n\n Cell no. 0 mutating @ site (50, 50) (father None)\n Initial mutations: []\n Initial genome: AAAAAAAAAA\n Final mutations: [(4, 'G')]\n Final genome: AAAAGAAAAA\n Cell no. 0 dividing @ (50, 50)\n New cells: 1 @ (49, 50) and 2 @ (50, 51)\n Cell no. 2 dividing @ (50, 51)\n New cells: 3 @ (51, 52) and 4 @ (51, 52)\n Cell no. 4 mutating @ site (51, 52) (father 2)\n Initial mutations: [(4, 'G')]\n Initial genome: AAAAGAAAAA\n Final mutations: [(4, 'G'), (7, 'A')]\n Final genome: AAAAGAAAAA\n Cell no. 1 death @ site (49, 50) (father None)\n Cell no. 3 death @ site (51, 52) (father 2)\n Cell no. 4 mutating @ site (51, 52) (father 2)\n Initial mutations: [(4, 'G'), (7, 'A')]\n Initial genome: AAAAGAAAAA\n Final mutations: [(4, 'G'), (7, 'A'), (2, 'T')]\n Final genome: AATAGAAAAA\n Cell no. 4 migrating from site (51, 52) (father 2)\n New site: (50, 52)\n ...\n ...\n ...\n\n\n # Prepare to explore the simulation logs\n >>> history = system['log']\n\n\n # First, let's see the cells' evolution in time and space!\n >>> history.worldlines().show()\n\n # Remove the cells that died somewhere along the way\n >>> history.worldlines(prune_death=True).show()\n\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/geometry.png\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/geometry_no_death.png\n\n\n.. code-block:: python\n\n >>> tree_style = {'show_leaf_name' : True,\n ... 'mode' : 'c', # Circular\n ... 'arc_start' : -135, # Degrees\n ... 'arc_span' : 270 } # Degrees also\n\n\n # Lookup the tree formed by cellular division\n >>> history.ancestry().show(styling=tree_style)\n\n # Now, remove cells that are no longer alive\n >>> history.ancestry(prune_death=True).show(styling=tree_style)\n\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/ancestry.png\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/ancestry_no_death.png\n\n\n.. code-block:: python\n\n # Now, check out the tree formed by the mutations \n >>> history.mutations().show(styling=tree_style)\n\n # Remove genomes with no living representatives.\n >>> history.mutations(prune_death=True).show(styling=tree_style)\n\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/mutations.png\n\n.. image:: https://raw.githubusercontent.com/Ad115/Cell-System/master/assets/mutations_no_death.png\n\n\n\nAlmost every aspect of the simulation is customizable. You can add several types of different interacting cell lines,\nalso, worlds with different geometry and with diffusion, cells with other characteristics that can be logged, \nother kinds of logs. Change the rate of death, movement, etc of each cell and even add new cell behaviors!\n\nFor now the documentation for doing so is scattered through the class documentation strings, but a good place to start is \nby watching the source of the `cellsystem.CellSystem `_ class.\n\n----\nMeta\n----\n\n**Author**: `Ad115 `_ - `Github `_ \u2013 a.garcia230395@gmail.com\n\nDistributed under the MIT license. See `LICENSE `_ for more information.\n\n\n------------\nContributing\n------------\n\n1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.\n2. Fork `the repository `_ on GitHub to start making your changes to a feature branch, derived from the **master** branch.\n3. Write a test which shows that the bug was fixed or that the feature works as expected.\n4. Send a pull request and bug the maintainer until it gets merged and published. \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/Ad115/Cell-System", "keywords": "simulation cell agents", "license": "", "maintainer": "", "maintainer_email": "", "name": "cellsystem", "package_url": "https://pypi.org/project/cellsystem/", "platform": "", "project_url": "https://pypi.org/project/cellsystem/", "project_urls": { "Author": "https://agargar.wordpress.com/", "Bug Reports": "https://github.com/Ad115/Cell-System/issues", "Homepage": "https://github.com/Ad115/Cell-System", "Say Thanks!": "https://saythanks.io/to/Ad115", "Source": "https://github.com/Ad115/Cell-System/" }, "release_url": "https://pypi.org/project/cellsystem/0.4.2/", "requires_dist": [ "ete3", "matplotlib", "numpy", "jupyter; extra == 'dev'" ], "requires_python": "", "summary": "An agent-based framework for the simulation of biological cell systems and more.", "version": "0.4.2" }, "last_serial": 4220409, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e56bb9cc64c82796972ea267e5391449", "sha256": "b210dacdad620a75288206d20a5e204c3a0412b5837bb5e5592823a198b0d602" }, "downloads": -1, "filename": "cellsystem-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e56bb9cc64c82796972ea267e5391449", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 22359, "upload_time": "2018-03-07T04:59:18", "url": "https://files.pythonhosted.org/packages/11/66/ee6b9cf8d6d3843d6f24dcd60c7378d797068b80fe13ad31fd4df3339055/cellsystem-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f4157a362bc9fb7eb9948a38ef59dc5e", "sha256": "89aa8cdd848d5dc5e0d9ff2f6514350c53895e2da04a3a0980de1ff0c5c61bed" }, "downloads": -1, "filename": "cellsystem-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f4157a362bc9fb7eb9948a38ef59dc5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16764, "upload_time": "2018-03-07T04:59:20", "url": "https://files.pythonhosted.org/packages/0b/92/bc2ab5c242a5be523b506d262787a0ae7c7d9a6bb258b2ee7f4b7a8a1b82/cellsystem-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "810b0ead0d4fb8a0d7156342ccf78825", "sha256": "67faf5981599fc1ee1c9e9d447e867fa0339b44585ea7845c6a249f6fd3affcc" }, "downloads": -1, "filename": "cellsystem-0.2.0.tar.gz", "has_sig": false, "md5_digest": "810b0ead0d4fb8a0d7156342ccf78825", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18510, "upload_time": "2018-04-08T03:15:48", "url": "https://files.pythonhosted.org/packages/f0/fd/1d32074f4471609106b1b3a79a2ee05b2e97c145cadfcf0ebf39330e272c/cellsystem-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "cfdf821c9782ed652d3025fb1b7be6c1", "sha256": "b0540020eab38bd708df3013c03bead701dc5b59f0dbb6a61e24bcad85b1740c" }, "downloads": -1, "filename": "cellsystem-0.3.0.tar.gz", "has_sig": false, "md5_digest": "cfdf821c9782ed652d3025fb1b7be6c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18921, "upload_time": "2018-04-08T06:44:05", "url": "https://files.pythonhosted.org/packages/54/2f/78131120fe477aa61718efd85b160c02eee7bd84b1974d449301f96ad4fc/cellsystem-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "3de6c124c76646006b5f120ccc5a1ba3", "sha256": "05bd1f9e4e1eb562b78985b53447ed8e5e87d3f1a4aab4406c1828e1afda5232" }, "downloads": -1, "filename": "cellsystem-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3de6c124c76646006b5f120ccc5a1ba3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28719, "upload_time": "2018-08-29T20:54:53", "url": "https://files.pythonhosted.org/packages/c6/f0/0b92c57b7014e2110899cbc087875d70777aed18de6bcb9f5de692035fd3/cellsystem-0.4.0-py3-none-any.whl" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "4c7892e22a8545b819d3480d5905426f", "sha256": "0f506861cf9b4981c1746877ca055f6a3306c3b37cee9b4db0aa13ddcb89cd1c" }, "downloads": -1, "filename": "cellsystem-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4c7892e22a8545b819d3480d5905426f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 28715, "upload_time": "2018-08-29T21:00:03", "url": "https://files.pythonhosted.org/packages/d4/d7/951b87c044e8aa86b3493695a8e1359b35296aec249878dcb646b0d01290/cellsystem-0.4.1-py3-none-any.whl" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "dcc7e286593f11a8715993bebdefd691", "sha256": "bc90d9a81e8615cbac78378cff1b256bba688a209d39244be586ff99b1d8608e" }, "downloads": -1, "filename": "cellsystem-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "dcc7e286593f11a8715993bebdefd691", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 27643, "upload_time": "2018-08-29T21:11:27", "url": "https://files.pythonhosted.org/packages/78/59/60fda112cdc5bb0e479475aad8a3fe1b5b1091cac49f9da2ecf4ade86031/cellsystem-0.4.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dcc7e286593f11a8715993bebdefd691", "sha256": "bc90d9a81e8615cbac78378cff1b256bba688a209d39244be586ff99b1d8608e" }, "downloads": -1, "filename": "cellsystem-0.4.2-py3-none-any.whl", "has_sig": false, "md5_digest": "dcc7e286593f11a8715993bebdefd691", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 27643, "upload_time": "2018-08-29T21:11:27", "url": "https://files.pythonhosted.org/packages/78/59/60fda112cdc5bb0e479475aad8a3fe1b5b1091cac49f9da2ecf4ade86031/cellsystem-0.4.2-py3-none-any.whl" } ] }