Skip to content

selection of exchange reactions #6

@sshameer

Description

@sshameer

Hi

In line 172 excahnge reactions are selected by looking for the "EX_" tag, this might lead to incorrect exchange selections if one does not use the EX_ prefix for exchange reactions.
exchange_reactions = new_cobra_model.reactions.query("EX_")

instead shouldn't we able to select exchange reactions using the following block ?

exchange_reactions = cobra.core.DictList()
for reaction in model.reactions:
  if (len(reaction.products)==0 or len(reaction.reactants)==0):
    exchange_reactions.append(reaction)

since cobra doesnt represent metabolites whose boundaryCondition attribute is set to true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions