compartments | R Documentation |
For a given set of stoichiometric reactions, this function identifies the compartments associated to each involved metabolite and return a vector with the list of unique compartments identified.
compartments(reactionList, uniques = TRUE)
reactionList |
A set of stoichiometric reaction with the following characteristics:
Some examples of valid stoichiometric reactions are:
|
uniques |
A boolean value |
A vector with the list of compartments identified for the metabolites of a set of stoichiometric reactions.
Daniel Camilo Osorio <dcosorioh@tamu.edu>
# Loading a set of stoichiometric reactions glycolysis <- read.csv(system.file("extdata/glycolysisModel.csv",package = "minval"), sep='\t') # Extract unique compartments compartments(reactionList = glycolysis$REACTION) # Extract all compartments compartments(reactionList = glycolysis$REACTION, unique = FALSE) # Extract compartments of metabolites compartments(reactionList = "H2O[e]")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.