Back to index

python-biopython  1.60
Public Member Functions
Bio.ExPASy.Enzyme.Record Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__

Detailed Description

\
Holds information from an ExPASy ENZYME record as a Python dictionary.

Each record contains the following keys:
ID: EC number
DE: Recommended name
AN: Alternative names (if any)
CA: Catalytic activity
CF: Cofactors (if any)
PR: Pointers to the Prosite documentation entrie(s) that
    correspond to the enzyme (if any)
DR: Pointers to the Swiss-Prot protein sequence entrie(s)
    that correspond to the enzyme (if any)
CC: Comments

Definition at line 53 of file Enzyme.py.


Constructor & Destructor Documentation

Definition at line 70 of file Enzyme.py.

00070 
00071     def __init__(self):
00072         dict.__init__(self)
00073         self["ID"] = ''
00074         self["DE"] = ''
00075         self["AN"] = []
00076         self["CA"] = ''
00077         self["CF"] = ''
00078         self["CC"] = []   # one comment per line
00079         self["PR"] = []
00080         self["DR"] = []
    

Here is the caller graph for this function:


Member Function Documentation

Definition at line 81 of file Enzyme.py.

00081 
00082     def __repr__(self):
00083         if self["ID"]:
00084             if self["DE"]:
00085                 return "%s (%s, %s)" % (self.__class__.__name__, 
00086                                         self["ID"], self["DE"])
00087             else:
00088                 return "%s (%s)" % (self.__class__.__name__, 
00089                                        self["ID"])
00090         else:
00091             return "%s ( )" % (self.__class__.__name__)
            

Definition at line 92 of file Enzyme.py.

00092 
00093     def __str__(self):
00094         output = "ID: " + self["ID"]
00095         output += " DE: " + self["DE"]
00096         output += " AN: " + repr(self["AN"])
00097         output += " CA: '" + self["CA"] + "'"
00098         output += " CF: " + self["CF"]
00099         output += " CC: " + repr(self["CC"])
00100         output += " PR: " + repr(self["PR"])
00101         output += " DR: %d Records" % len(self["DR"])
00102         return output
00103 
00104 # Everything below is private

Here is the caller graph for this function:


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