| Literature DB >> 28035271 |
Antonio Prestes García1, Alfonso Rodríguez-Patón1.
Abstract
Computational ecology is an emerging interdisciplinary discipline founded mainly on modeling and simulation methods for studying ecological systems. Among the existing modeling formalisms, the individual-based modeling is particularly well suited for capturing the complex temporal and spatial dynamics as well as the nonlinearities arising in ecosystems, communities, or populations due to individual variability. In addition, being a bottom-up approach, it is useful for providing new insights on the local mechanisms which are generating some observed global dynamics. Of course, no conclusions about model results could be taken seriously if they are based on a single model execution and they are not analyzed carefully. Therefore, a sound methodology should always be used for underpinning the interpretation of model results. The sensitivity analysis is a methodology for quantitatively assessing the effect of input uncertainty in the simulation output which should be incorporated compulsorily to every work based on in-silico experimental setup. In this article, we present R/Repast a GNU R package for running and analyzing Repast Simphony models accompanied by two worked examples on how to perform global sensitivity analysis and how to interpret the results.Entities:
Keywords: Repast; computational ecology; individual‐based modeling; sensitivity analysis; systems biology
Year: 2016 PMID: 28035271 PMCID: PMC5192867 DOI: 10.1002/ece3.2580
Source DB: PubMed Journal: Ecol Evol ISSN: 2045-7758 Impact factor: 2.912
Figure 1The iterative model development life cycle. This figure shows the relationship between the modeling phases and their associated tasks when applied to an individual‐based model
Figure 2The different types of sensitivity analysis and their associated methodologies and techniques
Figure 3The R/Repast general architecture. The scheme shows in the left box the R environment and the associated components of R/Repast. The right box represents the Repast Simphony model running within a Java Virtual Machine as well as the R/Repast integration broker component
The basic R/Repast Application Programming Interface functions. These functions are used for loading and modifying the default parameters defined for model and also for running the simulation
| Function name | Description |
|---|---|
| Model ( | This function creates an object instance for linking the Repast model to an R object. The required parameters are the directory where the model has been installed |
| Load ( | This function loads the Repast scenario from model's directory. The only required parameter |
| Run ( | The purpose of this function is to execute a single round of simulation using just one parameter set. The parameters for this function are a model instance |
| RunExperiment ( | Execute a complete experimental setup for different sets of parameters. The parameters required are a model instance |
| GetSimulationParameters ( | Returns the complete list of parameters declared by the model. The parameter |
| SetSimulationParameters ( | Modify several parameters at once |
| SaveSimulationData ( | Exports the results of Run or RunExperiment to a csv or excel files. The parameters |
The experimental setup Application Programming Interface functions. These functions are used for experimental design, parameter calibration, and sensitivity analysis
| Function name | Description |
|---|---|
| AddFactor ( | Creates the parameter collection for the experimental setup. The function requires the data frame |
| AoE.RandomSampling ( | Also known as Monte Carlo sampling, generate an experimental design based on making random samplings of parameter space. The function takes two parameters, the sample size |
| AoE.LatinHypercube ( | Generates an experimental design using the Latin Hypercube stratified sampling technique which is a more efficient sampling scheme, in terms of model evaluations, than the pure random sampling. The parameters |
| AoE.FullFactorial ( | Creates a factorial design where the effects of all independent variables of model are studied simultaneously, which implies many more model evaluations. The parameters |
| BuildParameterSet ( | Constructs the data frame required for executing RunExperiment(). The function takes two parameters: the design matrix |
The easy Application Programming Interface functions. These functions are the preferred entry point for the eventual users. These “Easy” functions lump together a complete experiment task in just one call, reducing the number of lines of code required
| Function name | Description |
|---|---|
| Easy.Stability ( | Evaluate the behavior of model output in order to determine the minimum required number of replication of the chosen experimental setup. The function accept the following parameters: the model installation directory |
| Easy.Morris ( | This function performs all required tasks for carrying out the method of Morris for screening. The parameters are practically the same as described for the previous function with exception of parameters |
| Easy.Sobol ( | Encapsulate all required steps for performing sensitivity analysis using Sobol method. The method of Sobol is a global sensitivity analysis technique based on the decomposition of output variance (Pujol et al., |
| Easy.Calibration ( | This function estimates the best set of input parameters or factors, performing a set of model executions in order to sample the calibration function. The objective of this function is to minimize the output of calibration function provided by the user |
| Easy.Setup ( | The parameters |
Figure 4The skeleton of objective function. The function has two parameters and must return a one or more scalar values
Figure 5The flow diagram showing the overview on how bacterial process are scheduled in the BactoSIM simulation model
The complete list of model initialization parameters
| Parameter | Unit | Description |
|---|---|---|
| G | Minutes | Average doubling time for plasmid‐free cells |
| cellCycle | % of G | The percentage of cellular cycle for conjugation |
| costConjugation | % of G | The penalization due to a conjugative event |
| costT4SS | % of G | The Pilus expression cost |
|
| Conjugations/cell | Upper limit for conjugations performed by an agent |
| isConjugative | True|false | Defines a conjugative or a mobilizable plasmid |
| isRepressed | True|false | The T4SS expression state for the plasmid |
|
| Cells/ml | Initial population expressed in cells/ml |
| donorRatio | % of | The initial density of donor cells ( |
| Equation | N/A | An equation for experimental data |
Figure 6The listing for stability of model output method using the Easy.Stability function from R/Repast
Figure 7The stability of model output. It is possible to observe how, insofar that the number of replications of the experimental setup increases, the value of the coefficient of variation converges to a common value
The input parameter collection for the Repast implementation of Predator–Prey model
| Input parameter | Description |
|---|---|
| initialnumberofwolves | The initial population of predators |
| initialnumberofsheep | The initial population of preys |
| wolfgainfromfood | The rate of predator energy is incremented every time a prey is consumed |
| wolfreproduce | The reproduction rate of predator individual |
| sheepgainfromfood | The prey rate energy increment for grazing grass |
| sheepreproduce | The reproduction rate of prey individual |
| grassregrowthtime | The amount of time required for grass be available again once consumed by a prey |
Figure 8The listing for Morris screening method using the Easy.Morris function from R/Repast
Figure 9Results of Morris screening method for predator–prey model. The graph shows the and σ sensitivity measures for Predator (a) and Prey (b) model outputs
Figure 10Results of Morris screening method for predator–prey model. The graph shows the μ and σ sensitivity measures for Predator (a) and Prey (b) model outputs
Figure 11Results of Morris screening method for Predator‐Prey model. The graph shows the and μ sensitivity measures for Predator (a) and Prey (b) model outputs
The input parameter collection for the conjugative plasmid common pool model
| Input parameter | Description |
|---|---|
| doublingTime | The doubling time of plasmid‐free cells |
| p1P ( | The probability of cell conjugate at least one time |
| p1Cost | The cost imposed by the plasmid P1 including the metabolic burden required to express the conjugative apparatus |
| p2Cost | The metabolic cost of plasmid P2 |
Figure 12The listing for Sobol GSA variance decomposition method using the Easy.Sobol function from R/Repast
Figure 13Results of Sobol variance decomposition method for T4SS common pool model. The graph shows sensitivity measures containing the first‐order (a) and total‐order (b) indices for bacterial population infected by P1 plasmid
Figure 14Results of Sobol variance decomposition method for T4SS common pool model. The graph shows sensitivity measures containing the first‐order (a) and total‐order (b) indices for bacterial population infected by P2 plasmid
Figure 15Results of Sobol variance decomposition method for T4SS common pool model. The graph shows sensitivity measures containing the first‐order (a) and total‐order (b) indices for bacterial population infected by both P1 and P2 plasmids