This code implements our proposed level set-based algorithm for realizing cellular rearrangements in various tissue morphological phenomena, e.g., total engulfment, cellular patterning in olfactory and auditory sensory tissues, cell sorting, and 3D cell internalization.
Download the latest release from Zenodo (doi:10.5281/zenodo.5834687) or from Github (https://github.com/rhudaina/Level-Set-Based-Method-for-Cellular-Rearrangement) and unzip into a directory of your choice.
This source code was created on macOS Version 10.15.5 and requires the following.
- GNU gcc compiler (clang-1200.0.32.21)
- FFTW 3.3.9
- MATLAB R2020b
Typical install time on a "normal" desktop computer should be around 5-10 minutes.
The source code have been tested to work on Windows via Cygwin and on a Unix-based device, in particular, Ubuntu 18.04 with MATLAB 2019a.
Open a terminal window, access subfolder /code, and execute the following command.
bash run.sh
The expected output should be a movie file saved explicitly to subfolder /results with filename simulation.mp4.
If this does not exist, run the following script within MATLAB.
generate_result.m
That's it.
To setup a simulation, access subfolder /data, and edit parameters.txt and initconfig.txt accordingly.
$Dimension: spatial dimension of a given cell aggregate, that is, either2- or3-dimensional$NodesByRow: number of nodes per row in domain discretization$NodesByCol: number of nodes per column in domain discretization$NumberStages: number of stages at which sigmas (weights at cell-cell junctions) changes$NbStepsPerStage: number of time steps per stage$TimeStepSize: time step size$NumberCells: number of cells in a given cell aggregate$NumberTypes: number of cell types in a given cell aggregate$NbCellsPerType: a row array containing the number of cells for each cell type$SigmaPerStage: a 2D array where each row indicates sigma values for each type of cell-cell junction (e.g., for a configuration of two cell types, say Blue and Orange, we have BB BO OO). The first row indicates the initial sigma values, and the succeeding rows the final sigma values at each stage. A configuration with 2 cell types and 3 stages, would result in a 4x3-array.$Fluctuation: range of fluctuation in sigmas (weights at cell-cell junctions)$ErrorTolerance: error tolerance in auction dynamics$EpsilonScalingFactor: epsilon scaling factor in auction dynamics$InitialEpsilonValue: initial epsilon value in auction dynamics$NumberLocalNodes: number of nodes defining discrete radius of a square neighborhood about each node$CellLabel: a string where each character labels each cell type (e.g., for a configuration of two cell types, say Blue and Orange, we have BO)$DisplayType: useadhsionif sigmas are taken as reciprocals of cell-cell adhesion values; otherwise, usetensionto display sigma values$Color: a row array composed of 3-element row blocks corresponding to RGB colors (0-255) in a 0 to 1 scale (e.g., for a configuration of two cell types, say Blue and Orange, we have 0 0.4471 0.6980 0.9020 0.6235 0)
$TypeOfCells: a 2D array where each row indicates the cell reference number followed by the reference number of its type$NodeCellRefNum: a column array containing cell reference number of each node
For example, consider a cell aggregate with 9x9 resolution below. Here, we label 81 nodes from 0 to 80, 4 cells from 0 to 3 with 2 cell types (Blue=0, Orange=1).
To reproduce a simulation from our paper, unzip SimulationData.zip, then copy parameters.txt and initconfig.txt from the corresponding subfolder below.
Engulfment: total engulfment of a blue cell mass by an orange cell massOlfactoryE14-WT: simulation of cellular rearrangements of WT olfactory epithelium using experimentally measured β-catenin intensitiesOlfactoryE14-KO: simulation of cellular rearrangements of αN-catenin KO olfactory epithelium using experimentally measured β-catenin intensitiesOlfactoryP1-WT: simulation of a developing olfactory epithelium using hypothetical values of interfacial tensions at postnatal stageAuditoryE14-WT: simulation of cellular rearrangements of WT auditory epithelium in embryonic stageAuditoryE14-KO: simulation of cellular rearrangements of nectin-3 KO auditory epithelium in embryonic stagesup_Wetting: wetting phenomenon resolved in the numerical implementation of the proposed level set-based methodsup_Nucleation: nucleation phenomenon resolved in the numerical implementation of the proposed level set-based methodsup_PartialMixing: simulation of partial mixingsup_PartialSorting: simulation of partial sortingsup_StrongSorting: simulation of strong sortingsup_Segregated: segregated pattern resulting from an aggregate consisting of blue cells expressing nection-2 and N-cadherin and orange cells expressing nectin-2, N-cadherin, and E-cadherinsup_Checkerboard: checkerboard pattern resulting from an aggregate consisting of blue cells expressing nection-2 and N-cadherin and orange cells expressing nectin-3 and N-cadherinsup_Football: football (kagome) pattern resulting from an aggregate consisting of blue cells expressing nection-2 and N-cadherin and orange cells expressing nectin-3, N-cadherin, and E-cadherinsup_AuditoryE14-WT: simulation of developing WT auditory epithelium starting from a biased initial state with no fluctuationsup_AuditoryE14-WTosc: simulation of developing WT auditory epithelium starting from a biased initial state with added tension fluctuations of size up to 10%sup_AuditoryE14-KOosc: simulation of developing nectin-3 KO auditory epithelium starting from a biased initial state with added tension fluctuations of size up to 10%sup_Internalization: three-dimensional cell internalization from an initial cell doublet configuration
On a "normal" desktop computer, the expected run time for demo dataset found in subfolder /data is around 18-20 seconds to generate the solution set, and around 51-55 seconds to generate the resulting movie file.
Copyright (c) 2021 Rhudaina Mohammad, Hideki Murakawa, Karel Svadlenka, and Hideru Togashi
MIT License. See the LICENSE file for details
"A numerical algorithm for modeling cellular rearrangements in tissue morphogenesis" by Rhudaina Mohammad, Hideki Murakawa, Karel Svadlenka, and Hideru Togashi, Communications Biology 5, 239 (2022). doi: 10.1038/s42003-022-03174-6
