Skip to main content

A toy center-based model of initial clustering

Project description

c6 (Circular Center-based Cell Colony Creation and Clustering) c6

Build Status Documentation Code Coverage

C6 is a toy center-based model of the initial clustering that occurs as a cells aggregate after replating.


Features

  • Represents cells as non-overlapping circles
  • Cells exclude each other
  • Cells sense each other with tunable strength and distances
  • Cells grow at tunable rates
  • Cells divide at tunable sizes
  • Cells' growth is contact inhibited
  • Runs are launched from stored initial conditions
  • Runs are selectable as deterministic or stochastic
  • Runs are logged to tidy data file
  • Run state is visualized
  • You can save run states out to pretty MP4s
  • Summary statistics are available for probing run logs
  • Easy run profiling

Quick Start

import c6
import numpy as np
import matplotlib.pyplot as plt


space = c6.Space()
cell_locs = 20*np.random.random((10,2))
cells = [c6.Cell(space, loc) for loc in cell_locs]

fig, ax = plt.subplots(1,1, figsize=(10,10))
ax.set(xlim=(-10, 20), ylim=(-10, 20))
animation = c6.plot.animate(fig, ax, space, 500)
animation.save('example.mp4', fps=20)

Installation

Clone and install or pip install git+https://github.com/AllenCellModeling/c6.git

Creating initial conditions and logging runs

Both initial conditions and run logs are stored as JSON in this form:

{
    "seed": 123,
    "universal": {"sensing": 12.3,
                  "influence_max": 12,
                  "influence_decay": 0.3,
                  "adhesion": 0.5
                 },
    "cells": [{"time": 0,
               "id": [0, 1, ..., 100],
               "loc": [[1, 2], [3, 4], ..., [0.5, 2]],
               "radius": [0.3, 0.5, ..., 2.0]
             }]
}

Any property that can be passed to c6.Cell as a parameter can be serialized either as a key/value pair in 'universal', in which case it applies to all cells at all time points, or to "cells", in which case it is parsed on a per cell per time point basis. Starting conditions are this file, but with only the first entry in "cells" specified. The first entry in "cells" is always applied before later entries and so per-cell values that do not change (e.g. ids) can be set there.

Documentation

For full package documentation please visit AllenCellModeling.github.io/c6.

Available under the Allen Institute Software License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c6-0.4.0.tar.gz (273.9 kB view details)

Uploaded Source

Built Distribution

c6-0.4.0-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file c6-0.4.0.tar.gz.

File metadata

  • Download URL: c6-0.4.0.tar.gz
  • Upload date:
  • Size: 273.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for c6-0.4.0.tar.gz
Algorithm Hash digest
SHA256 13cc8c1932b6da4a94bcab0f3fce4cf86185d4d03679f906f0af1a636aad4368
MD5 5d58eec82f80926e66e84bf10938fab3
BLAKE2b-256 1837ad9578bb6f1eb6ab28bab5e5a9437fb659c46760120ad7a7fbc3d2cc3503

See more details on using hashes here.

File details

Details for the file c6-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: c6-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for c6-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 365b0182a55bf21b987fc9ddbdb955ee7fd3d7f28205f53cb8b3de2d77a4476b
MD5 9f94c63a255ec9d9450f18c32c4a6139
BLAKE2b-256 683f3317383f859c78aa64d80c077b3fb4176bcfcf45ef34c4852dc30637ec60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page