Package Bio :: Package MetaTool :: Module Input
[hide private]
[frames] | no frames]

Module Input

source code

This module provides code to convert Bio.Pathway.System objects into a text file that can be used as input for the MetaTool program.

For more information on MetaTool, please refer to:

http://www2.bioinf.mdc-berlin.de/metabolic/metatool/

Functions [hide private]
 
system_to_metatool(system, metext=[], metint=[], generate_names=1)
Converts a Bio.Pathway.System object to a MetaTool input string.
source code
Function Details [hide private]

system_to_metatool(system, metext=[], metint=[], generate_names=1)

source code 
Converts a Bio.Pathway.System object to a MetaTool input string.

Note that to be a valid input string, the enzyme names of the reactions
in the system must conform to the MetaTool requirements.

Enzyme names are automatically genrated from the catalys attribute of
each reaction using the following scheme:

enzyme_name = "_".join([str(x[0]) for x in r.catalysts])

If an enzyme name has already been used, a positive integer will be
appended to this name to meet the MetaTool input requirements. If this
behaviour is undesired, set the optional parameter 'generate_names' to
false. All enzyme names will the be 'E_x', where x is an unique integer.

The optional parameters metext and metint can be used to specify the
external and internal metabolites according to the following rules:

1. If metext is set, the species in it will be considered external.
   All other species will be considered internal.

2. Otherwise, if metint is set, the species in it will be considered
   internal. All other species will be considered external.

3. Otherwise, all species will be considered external.

If specified, metext and metint must not contains species that are not
contained in the input system.