Skip to content

Example_Mutants

Arnau Montagud edited this page Jan 24, 2018 · 4 revisions

Example: Population composed of 3 mutants under TNF treatment

Step-by-step example of running a simulation with PhysiBoSS: cell population composed of 3 mutants response to TNF continuous injection.

In this example, we showed all the steps required to simulate the response of cell population to TNF injection, with 3 different cell lines that have different mutation in their internal signalling pathways, with the necessary files provided so that it can be reproduced by the user.

Preparation

Mutant definition

Run the simulation

Visualize the results

Results

Preparation

We are simulating here a spheroid of active cells from three cell lines (blue, white and red). The three cell lines are mechanically identical (in the parameter files, all their cell_properties parameters are the same. It can be easily modified for more complex simulations.

First the simulation folder must be prepared. We used a precise organization of the simulation to be able to automatize the creation, running and analyse of numerous simulations. The main folder (called in this example example_mutants) contains the run* folders and the BN folder.

Each run folder contain an individual simulation. This is especially usefull to simulate a similar condition, with only one parameter changing in each run folder, or all the same to repeat it for robutness. In this example, we did two similar runs (run0, run1 folder).

A run folder must contain the parameter XML file. To specify different parameters for each cell line, there are two cell_properties elements in the parameter file and their order in the parameter file defines the corresponding cell line (the first cell_properties element defined the cell line 0, the second one the cell line 1...). Here, we kept the same values for all cell lines.

It can also contains the initial configuration file, as in this example init.txt. It was created with the PhysiBoSS_CreateInitTxtFile executable, with an option to initialize 3 types of cell with equal probabilities (0.33). The two output subfolders output and microutput that will be used by PhysiBoSS to write the results files must be present.

The BN folder contains two files, bn_conf.cfg and bn_nodes.bnd which are MaBoSS configuration files of a boolean network. In this example, the network used is the Cell Fate boolean network used in PhysiBoSS publication.

Mutant definition

To define a mutant in PhysiBoSS, it must be configured in the MaBoSS input files. In the file, containing the model definitions, the activation and de-activation rates are defined according to other nodes value. A mutant can be introduced with a variable (e.g. $Low_CASP8) defined in the configuration file, of value 0 for no mutation and 1 for active mutation in general. Here is an example of a possibly mutated node:

node CASP8
{
  logic = (DISC_TNF | (DISC_FAS | CASP3) ) & (!cFLIP);
  rate_up = ($Low_CASP8 ? 0.0 : ( $High_CASP8 ? 1E+100 : ( @logic ? 1.0: 0.0 )) );
  rate_down = ($Low_CASP8 ? 1E+100 : ( $High_CASP8 ? 0.0 : (@logic ? 0.0 : 1.0 )) );
}
In this example, CASP8 gene can be mutated with either inhibition ($Low_CASP8), meaning that its activation rate is 0 and de-activation rate is very fast, or with over-expression ($High_CASP8) meaning that its activation rate is very fast and de-activation rate is 0. In the network files that we provided with this example, 12 different mutations are introduced, but it's straightforward to add other mutation by mimicking the code above.

By default, all the mutation parameter value ($Low_CASP8...) are 0 (not mutated). To add a mutation and link it to a specific cell line in PhysiBoSS, it must be specified in the parameter file in the network section:

 
<network>
	<network_update_step> 10 </network_update_step>
        <mutation_0>
		<symbol_name> $Low_CASP8 </symbol_name>
		<cell_line> 0 </cell_line>
		<rate> 0.0 </rate>
	</mutation_0>
        <mutation_1>
		<symbol_name> $Low_CASP8 </symbol_name>
		<cell_line> 1 </cell_line>
		<rate> 0.0 </rate>
	</mutation_1>...
</network>
for all cell lines and mutation introduced. In this example, we have 3 cell lines, one without mutations (WT, blue); one with inhibited CASP8 (survival favored, white); and one with over-expressed CASP8 (apoptosis favored, red).

Run the simulation

To run the simulation, open a Terminal window in the (here run0) folder of the simulation and call PhysiBoSS executable:

path_to_PhysiBoSS/bin/PhysiBoSS -p parameters.xml

During the simulations, summary informations are printed to the terminal (initialisation, number of cells dividing, dying, time spent...). It can be more convenient to redirect it to an other file to supress any output when running multiple simulations at once:

path_to_PhysiBoSS/bin/PhysiBoSS -p parameters.xml > msg.txt

Output files are written in the two output folders, and svg snapshots can be written at given frequency to directly visualize the simulation evolution.

This simulation was runned in less than 10 min.

Visualize the results

To visualize 3D+t results of the simulations, we used the software Paraview which allows for high flexibility and intereactive viewing options. In the files available for this example, the state file example_mutants.pvsm contains the setting-up of paraview to draw the output files in 3D view. To use it, open Paraview, click on ( File -> Load State...) and select the state file example_cell_sorting.pvsm. Then a window to choose the files to visualize will pop up, select in the output folder of the simulation the active cell file stack.

Results

Below are snapshots of the simulation that you should obtain by re-running it and visualizing it with our customized paraview state file. Cells of the first cell line (WT) are in blue, cells of the second cell line (CASP8 inhibited) are in white, cells of the third cell line (CASP8 over-expressed) are in red. As expected, red cells are comitted to apoptosis under TNF treatment and disappear fast, while white cells proliferate and some WT cells (blue) resisted.

Example results