This function removes uniquitous compounds (metabolites connected to numerous reactions) from a metabolic network.These compounds are reaction cofactors and currency compounds, such as ATP, CO2, etc. A path through these metabolites may not be bioloigcally meaningful. The defualt small compound list is derived from Reactome, containing keeg.compound, pubchem.compound, ChEBI and CAS identifiers.
rmSmallCompounds(
graph,
method = c("remove", "duplicate"),
small.comp.ls = NPMdefaults("small.comp.ls")
)
A modified graph, with the small compounds removed or duplicated.
Other Network processing methods:
expandComplexes()
,
makeMetaboliteNetwork()
,
makeReactionNetwork()
,
reindexNetwork()
,
simplifyReactionNetwork()
,
vertexDeleteReconnect()
data(ex_sbml)
sbml.removed <- rmSmallCompounds(ex_sbml, method="remove")
#> This graph was created by an old(er) igraph version.
#> ℹ Call `igraph::upgrade_graph()` on it to use with the current igraph version.
#> For now we convert it on the fly...