Back to index

python-biopython  1.60
Public Member Functions | Public Attributes | Private Member Functions
Bio.KEGG.Compound.Record Class Reference

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 entry
 name
 formula
 mass
 pathway
 enzyme
 structures
 dblinks

Private Member Functions

def _entry
def _name
def _formula
def _mass
def _pathway
def _enzyme
def _structures
def _dblinks

Detailed Description

Holds info from a KEGG Ligand/Compound record.

Members:
entry       The entry identifier.
name        A list of the compund names.
formula     The chemical formula for the compound 
mass        The molecular weight for the compound
pathway     A list of 3-tuples: (database, id, pathway)
enzyme      A list of 2-tuples: (enzyme id, role)
structures  A list of 2-tuples: (database, list of struct ids)
dblinks     A list of 2-tuples: (database, list of link ids)

Definition at line 31 of file __init__.py.


Constructor & Destructor Documentation

__init___(self)

Create a new Record.

Definition at line 45 of file __init__.py.

00045 
00046     def __init__(self):
00047         """__init___(self)
00048 
00049         Create a new Record.
00050         """
00051         self.entry      = ""
00052         self.name       = []
00053         self.formula    = ""
00054         self.mass       = ""
00055         self.pathway    = []
00056         self.enzyme     = []
00057         self.structures = []
        self.dblinks    = []

Here is the caller graph for this function:


Member Function Documentation

__str__(self)

Returns a string representation of this Record.

Definition at line 58 of file __init__.py.

00058 
00059     def __str__(self):
00060         """__str__(self)
00061 
00062         Returns a string representation of this Record.
00063         """
00064         return self._entry() + \
00065                self._name()  + \
00066                self._formula() + \
00067                self._mass() + \
00068                self._pathway() + \
00069                self._enzyme() + \
00070                self._structures() + \
00071                self._dblinks() + \
               "///"

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._dblinks (   self) [private]

Definition at line 111 of file __init__.py.

00111 
00112     def _dblinks(self):
00113         s = []
00114         for entry in self.dblinks:
00115             s.append(entry[0] + ": " + " ".join(entry[1]))
00116         return _write_kegg("DBLINKS",
00117                            [_wrap_kegg(l, wrap_rule = id_wrap(9)) \
00118                             for l in s])
00119 

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._entry (   self) [private]

Definition at line 72 of file __init__.py.

00072 
00073     def _entry(self):
00074         return _write_kegg("ENTRY",
                           [self.entry])

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._enzyme (   self) [private]

Definition at line 94 of file __init__.py.

00094 
00095     def _enzyme(self):
00096         s = ""
00097         for entry in self.enzyme:
00098             if entry[1]:
00099                 t = entry[0] + " (" + entry[1] + ")"
00100             else:
00101                 t = entry[0]
00102             s = s + t.ljust(16)
00103         return _write_kegg("ENZYME",
                            [_wrap_kegg(s, wrap_rule = id_wrap(0))])

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._formula (   self) [private]

Definition at line 79 of file __init__.py.

00079 
00080     def _formula(self):
00081         return _write_kegg("FORMULA",
00082                            [self.formula])

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._mass (   self) [private]

Definition at line 83 of file __init__.py.

00083 
00084     def _mass(self):
00085         return _write_kegg("MASS",
00086                            [self.mass])
    

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._name (   self) [private]

Definition at line 75 of file __init__.py.

00075 
00076     def _name(self):
00077         return _write_kegg("NAME",
00078                            [_wrap_kegg(l, wrap_rule = name_wrap) \
                            for l in self.name])

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._pathway (   self) [private]

Definition at line 87 of file __init__.py.

00087 
00088     def _pathway(self):
00089         s = []
00090         for entry in self.pathway:
00091             s.append(entry[0] + ": " + entry[1] + "  " + entry[2])
00092         return _write_kegg("PATHWAY",
00093                            [_wrap_kegg(l, wrap_rule = id_wrap(16)) \
                            for l in s])

Here is the call graph for this function:

Here is the caller graph for this function:

def Bio.KEGG.Compound.Record._structures (   self) [private]

Definition at line 104 of file __init__.py.

00104 
00105     def _structures(self):
00106         s = []
00107         for entry in self.structures:
00108             s.append(entry[0] + ": " + "  ".join(entry[1]) + "  ")
00109         return _write_kegg("STRUCTURES",
00110                            [_wrap_kegg(l, wrap_rule = struct_wrap(5)) \
                            for l in s])

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 57 of file __init__.py.

Definition at line 50 of file __init__.py.

Definition at line 55 of file __init__.py.

Definition at line 52 of file __init__.py.

Definition at line 53 of file __init__.py.

Definition at line 51 of file __init__.py.

Definition at line 54 of file __init__.py.

Definition at line 56 of file __init__.py.


The documentation for this class was generated from the following file: