makeParamMatrixS: Gets parameter values for parameters halfSat, yield and...

Description Usage Arguments Value

View source: R/makeParamMatrixS.R

Description

Gets parameter values for parameters halfSat, yield and maxGrowthRate from the MFGs and puts into a matrix also assigns strain traits since traits are assigned to all strains at once for one param they are stored in Mat[strain,res,path], this is then rearranged to make a matrix for each strain (mat[path,res]).

Usage

1
2
3
4
5
6
7
8
9
makeParamMatrixS(
  resNames,
  microbeNames,
  parameterName,
  numPaths,
  numStrains,
  strainOptions,
  oneStrainRandomParams
)

Arguments

resNames

Vector of strings which contains the names of the resources in the system

microbeNames

Vector of strings which contains the names of the microbial groups in the system e.g. c('Bacteroides','Acetogens')

parameterName

Name of parameter

numPaths

Named vector. Number of paths for each microbial group

numStrains

Integer or named vector of integers. Number of strains per group

strainOptions

List of strain options

oneStrainRandomParams

Logical. TRUE for randomized params even if there is only one strain.

Value

A list called parameterName which contains matrices for all strains (in all groups) with paths on rows and resources on columns


microPop documentation built on Feb. 3, 2022, 5:07 p.m.