simHum: Function for one simulation iteration for objects of Human...

Description Usage Arguments Details Value See Also Examples

Description

The generic function simHum implements all neccessary functions for the individuals to update the complete environment.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
simHum(
  object,
  arena,
  j,
  sublb,
  bacnum,
  sec_obj = "none",
  cutoff = 1e-06,
  pcut = 1e-06,
  with_shadow = FALSE
)

## S4 method for signature 'Human'
simHum(
  object,
  arena,
  j,
  sublb,
  bacnum,
  sec_obj = "none",
  cutoff = 1e-06,
  pcut = 1e-06,
  with_shadow = FALSE
)

Arguments

object

An object of class Human.

arena

An object of class Arena defining the environment.

j

The number of the iteration of interest.

sublb

A vector containing the substance concentrations in the current position of the individual of interest.

bacnum

integer indicating the number of bacteria individuals per gridcell

sec_obj

character giving the secondary objective for a bi-level LP if wanted.

cutoff

value used to define numeric accuracy.

pcut

A number giving the cutoff value by which value of objective function is considered greater than 0.

with_shadow

True if shadow cost should be stores (default off).

Details

Human cell individuals undergo the step by step the following procedures: First the individuals are constrained with constrain to the substrate environment, then flux balance analysis is computed with optimizeLP, after this the substrate concentrations are updated with consume, then the cell growth is implemented with cellgrowth, the potential new phenotypes are added with checkPhen, finally the conditional function lysis is performed. Can be used as a wrapper for all important cell functions in a function similar to simEnv.

Value

Returns the updated enivironment of the arena parameter with all new positions of individuals on the grid and all new substrate concentrations.

See Also

Human-class, Arena-class, simEnv, constrain, optimizeLP, consume, cellgrowth, checkPhen and lysis

Examples

1

BacArena documentation built on July 2, 2020, 3:16 a.m.