makeParamMatrixS function

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]).

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]).

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.

Returns

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