calc_growth_time: Computes the time it takes a strain to grow from a lower...

Description Usage Arguments Examples

View source: R/de_system_analysis.R

Description

Given a solved system, a strain number and a lower and upper threshold, compute the time it takes to grow from the one to the other. Returns NA if that growth did not occur in the system.

Usage

1
  calc_growth_time(ss, strain_id, lower, upper)

Arguments

ss

A solved system as produced by run_system

strain_id

The number of strain whose growth rates are of interest

lower

The lower threshold - the number where the growth that needs to be tracked started

upper

The upper threshold - the growth is tracked until this threshold is reached

Examples

1
2
3
4
5
6
7
8
9
ss <- run_system(get_scenario('tc_Simple_1_2'),1)
calc_growth_time(ss, 2, 2, 100)
#147
calc_growth_time(ss, 2, 2, 1000)
#235
calc_growth_time(ss, 3, 2, 1000)
#NA
calc_growth_time(ss, 3, 2, 5)
#150

philliplab/hdsResistanceModel documentation built on May 25, 2019, 5:05 a.m.