Skip to contents

Constructor function for MiCo objects. This function can be used to create a new MiCo object from a CSV file or from vectors of microorganisms, metabolites and fluxes.

Usage

newMiCo(
  data = NULL,
  name = NULL,
  species = character(),
  metabolites = character(),
  fluxes = numeric()
)

Arguments

data

A data frame/tibble or a path to a csv file storing community data. Not required when using the species, metabolites, and fluxes arguments.

name

A character vector representing the name of the community.

species

character vector representing the microorganisms present in the community.

metabolites

A character vectors representing the metabolites consumed and produced within the community.

fluxes

A numeric vector representing the fluxes of each metabolite in the community.