# Sister Reunion

##### Persistent Identifier

Track MotherId (cell.id of mother) and compare it between neighboring cells

## Introduction

This example model demonstrates the tracking of the cell.id of any cell’s mother and to compare these MotherIds between neighboring cells upon contact to trigger special behaviors if sister cells meet in a SisterReunion. Such special cell-cell contacts of sister cells are flagged by the cell property SisterReunion $= 1$, otherwise $0$.

## Description

For each cell division, a trigger copies the cell.id of the mother cell to the property MotherId of each daughter cell. In the included movie, the left panel shows cell.id, the right panel MotherId. The plugin NeighborhoodReporter compares local.MotherId == MotherId where local accesses the cell’s own scope when collecting information from the neighborhood. The test returns a $1$ when sisters are in contact, $0$ otherwise. This is updated every timestep (can be adjusted in NeighborhoodReporter) and stored in the Property SisterReunion and used to color cells in the right panel of the movie. Snapshot of moving and dividing cells, daughter cells from the same earlier cell division that later encounter each other again are colored red in the right panel, as indicated by the computed property SisterReunion ($0 =$ green, $1 =$ red)

A follow-up question may be what happens when multiple cells are in contact of which at most two may be sisters. To control the outcome, you may choose a statistical function in the mapping attribute of the NeighborhoodReporter/Output. The statistical function is then applied to all pairwise results of the NeighborhoodReporter with each neighboring cell. In the attached files, I’ve used the mapping attribute maximum to get enough red color into the movie. If you choose minimum then you could flag just those sister reunions that are happening privately. Or you choose scaling="length" and mapping="average" to average over the cell membrane fractions (as opposed to each neighbor having the same weight independent of contact length, which you get with scaling="cell", mapping="average") in contact with neighboring cells (mind the medium).

## Model

Get this model via:

XML Preview

<?xml version='1.0' encoding='UTF-8'?>
<MorpheusModel version="4">
<Description>
<Title>Example-SisterReunion</Title>
<Details>Demonstration for tracking of MotherId and selective behavior for cell-cell interactions of sister cells from an earlier cell division of the joint mother cell. Such special cell-cell contacts of sisters are flagged by the cell property SisterReunion=1, otherwise 0.
Date: April 20, 2020
Author: lutz.brusch@tu-dresden.de

</Details>
</Description>
<Global>
<Variable value="0.0" symbol="c"/>
<Constant value="-1" symbol="MotherId"/>
</Global>
<Space>
<Lattice class="hexagonal">
<Size value="100, 100, 0" symbol="size"/>
<BoundaryConditions>
<Condition type="periodic" boundary="x"/>
<Condition type="periodic" boundary="y"/>
</BoundaryConditions>
<Neighborhood>
<Order>1</Order>
</Neighborhood>
</Lattice>
<SpaceSymbol symbol="space"/>
</Space>
<Time>
<StartTime value="0"/>
<StopTime value="4e4" symbol="stoptime"/>
<TimeSymbol symbol="time"/>
</Time>
<CellTypes>
<CellType name="cells" class="biological">
<Property value="0" symbol="MyId"/>
<Property value="0" symbol="MotherId"/>
<Property value="0" symbol="SisterReunion"/>
<NeighborhoodReporter time-step="1" name="Test Sister Reunion">
<Input scaling="cell" value="local.MotherId==MotherId"/>
<Output symbol-ref="SisterReunion" mapping="maximum"/>
</NeighborhoodReporter>
<Property value="1e-4" symbol="p" name="proliferation rate"/>
<Property value="0" symbol="d" name="divisions"/>
<Property value="0" symbol="c" name="color"/>
<VolumeConstraint strength="1" target="500"/>
<SurfaceConstraint strength="1" target="0.9" mode="aspherity"/>
<System time-step="1.0" solver="euler">
<Rule symbol-ref="c">
<Expression>if( c > 0, c-1, 0)</Expression>
</Rule>
</System>
<CellDivision division-plane="random" orientation="1.0, 0.0, 0.0">
<Condition>rand_uni(0,1) &lt; p</Condition>
<Triggers>
<Rule symbol-ref="d">
<Expression>d+1</Expression>
</Rule>
<Rule symbol-ref="c" name="color after division">
<Expression>1000</Expression>
</Rule>
<Rule symbol-ref="MotherId">
<Expression>MyId</Expression>
</Rule>
</Triggers>
</CellDivision>
<DirectedMotion strength="0.1" direction="mod(cell.id,2)-0.5, 0.0, 0.0" name="JustForFunToSeparateSistersAfterDivision"/>
<Event time-step="10" trigger="when true" name="UpdateMyIdAfterInheritance">
<Condition>1</Condition>
<Rule symbol-ref="MyId">
<Expression>cell.id</Expression>
</Rule>
</Event>
</CellType>
</CellTypes>
<CPM>
<Interaction default="0">
<Contact value="-4" type2="cells" type1="cells"/>
</Interaction>
<MonteCarloSampler stepper="edgelist">
<MCSDuration value="1.0"/>
<Neighborhood>
<Order>1</Order>
</Neighborhood>
<MetropolisKinetics yield="0.1" temperature="3"/>
</MonteCarloSampler>
<ShapeSurface scaling="norm">
<Neighborhood>
<Order>3</Order>
</Neighborhood>
</ShapeSurface>
</CPM>
<CellPopulations>
<Population size="1" type="cells">
<InitCircle mode="regular" number-of-cells="1">
</InitCircle>
</Population>
</CellPopulations>
<Analysis>
<Gnuplotter time-step="100" decorate="true">
<Terminal name="png"/>
<Plot title="Recently divided cells are red, Label=cell.id">
<Cells value="c" max="1" min="0.0">
<ColorMap>
<Color value="1" color="red"/>
<Color value="0.0" color="green"/>
</ColorMap>
</Cells>
<CellLabels value="cell.id" fontsize="12"/>
</Plot>
<Plot title="Reunions of sister cells are red, Label=MotherId">
<Cells value="SisterReunion" max="1" min="0.0">
<ColorMap>
<Color value="1" color="red"/>
<Color value="0.0" color="green"/>
</ColorMap>
</Cells>
<CellLabels value="MotherId" fontsize="12"/>
</Plot>
</Gnuplotter>
<Logger time-step="100">
<Input>
<Symbol symbol-ref="celltype.cells.size"/>
</Input>
<Output>
<TextOutput/>
</Output>
<Plots>
<Plot time-step="10000" log-commands="true">
<Style style="linespoints" point-size="0.5" grid="true"/>
<Terminal terminal="png"/>
<X-axis maximum="stoptime" minimum="0">
<Symbol symbol-ref="time"/>
</X-axis>
<Y-axis maximum="100" minimum="0">
<Symbol symbol-ref="celltype.cells.size"/>
</Y-axis>
</Plot>
</Plots>
</Logger>
<DependencyGraph reduced="false" format="svg"/>
</Analysis>
</MorpheusModel>


The simulation is visualized in this movie linked below the figure: SisterReunionMovie.mp4.
{"ft_lang_label":"__label__en","ft_lang_prob":0.59312475,"math_prob":0.6719791,"size":6428,"snap":"2021-43-2021-49","text_gpt3_token_len":1704,"char_repetition_ratio":0.13200498,"word_repetition_ratio":0.03240059,"special_character_ratio":0.27146858,"punctuation_ratio":0.09264854,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97825146,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-28T18:06:36Z\",\"WARC-Record-ID\":\"<urn:uuid:743869eb-0747-4a74-bc6d-432775b44a6c>\",\"Content-Length\":\"41055\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:08e9c9d5-1b64-44e5-95c7-12caa4040a55>\",\"WARC-Concurrent-To\":\"<urn:uuid:5aa8f20d-eb83-4f7e-b6f9-5492c3e9f082>\",\"WARC-IP-Address\":\"35.185.44.232\",\"WARC-Target-URI\":\"https://morpheus.gitlab.io/model/m5493/\",\"WARC-Payload-Digest\":\"sha1:7T5ZJXQO6YOWSUMJ4STFLRN4UEBB3CIK\",\"WARC-Block-Digest\":\"sha1:6ZQFBQGXXZDSTRA65WH7CMU74QBIOYZI\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323588398.42_warc_CC-MAIN-20211028162638-20211028192638-00168.warc.gz\"}"}