reshapeFlowMat function

reshapeFlowMat

reshapeFlowMat

reshapes the flow matrices outflow.uptakeoroutflow.uptake or outflow.production into a list elements of the list are the microbeNames and then there is a matrix [path,res]

reshapeFlowMat(time.step, flow.direction, out)

Arguments

  • time.step: is the index of the chosen time
  • flow.direction: is either 'uptake' or 'production'
  • out: is the output from microPopModel with networkAnalysis=TRUE

Returns

a list with microbeNames as elements and a matrix of [path,resource] showing the chosen flow direction (eg. uptake or production). Note theses flows have not been converted to moles.