Bio.ExPASy.Enzyme module

Parse the enzyme.dat file from Enzyme at ExPASy.

See https://www.expasy.org/enzyme/

Tested with the release of 03-Mar-2009.

Functions:
  • read Reads a file containing one ENZYME entry

  • parse Reads a file containing multiple ENZYME entries

Classes:
  • Record Holds ENZYME data.

Bio.ExPASy.Enzyme.parse(handle)

Parse ENZYME records.

This function is for parsing ENZYME files containing multiple records.

Arguments:
  • handle - handle to the file.

Bio.ExPASy.Enzyme.read(handle)

Read one ENZYME record.

This function is for parsing ENZYME files containing exactly one record.

Arguments:
  • handle - handle to the file.

class Bio.ExPASy.Enzyme.Record

Bases: dict

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

__init__(self)

Initialize the class.

__repr__(self)

Return the canonical string representation of the Record object.

__str__(self)

Return a readable string representation of the Record object.