Functional Microbiome Representation
Source:R/AllClasses.R, R/ConsortiumMetabolism.R
ConsortiumMetabolism.RdCreates a ConsortiumMetabolism object
representing metabolic interactions in a microbial community.
The object stores metabolite consumption and production by
different species, along with flux sums and effective fluxes.
Usage
ConsortiumMetabolism(
data,
name = NA_character_,
species_col = "species",
metabolite_col = "met",
flux_col = "flux",
...
)Arguments
- data
a data.frame with columns for species, metabolites and fluxes. Fluxes can be weighted or unweighted (magnitude 1).
- name
Character scalar giving the consortium name.
- species_col
Character scalar for the species column name, defaults to
"species".- metabolite_col
Character scalar for the metabolite column name, defaults to
"met".- flux_col
Character scalar for the flux column name, defaults to
"flux".- ...
Additional arguments passed to the constructor.
Slots
Namecharacter. Display name for the consortium.
Descriptioncharacter. Optional short description.
Pathwaysdata.frame. Pathway list of metabolic interactions with per-pathway metrics (species, flux sums, effective diversity).
Weightedlogical. Whether flux magnitudes are used.
InputDatadata.frame. Original input data (species, metabolite, flux columns).
Metabolitescharacter. Unique metabolite identifiers.
Graphslist. List containing an igraph object of the metabolic network.
Examples
cm <- synCM("example", n_species = 3, max_met = 5)
cm
#>
#> ── ConsortiumMetabolism
#> Name: "example"
#> Weighted metabolic network with 5 metabolites.