Module Prodoc
source code
This module provides code to work with the prosite.doc file from
Prosite. http://www.expasy.ch/prosite/
Tested with: Release 15.0, July 1998 Release 16.0, July 1999 Release
20.22, 13 November 2007
Functions: parse Iterates over entries in a Prodoc file.
index_file Index a Prodoc file for a Dictionary. _extract_record
Extract Prodoc data from a web page.
Classes: Record Holds Prodoc data. Reference
Holds data from a Prodoc reference. Dictionary Accesses a Prodoc
file using a dictionary interface. RecordParser Parses a Prodoc
record into a Record object.
_Scanner Scans Prodoc-formatted data. _RecordConsumer
Consumes Prodoc data to a Record object. Iterator Iterates over
entries in a Prodoc file; DEPRECATED.
|
Record
Holds information from a Prodoc record.
|
|
Reference
Holds information from a Prodoc citation.
|
|
Iterator
Returns one record at a time from a Prodoc file.
|
|
Dictionary
Accesses a Prodoc file using a dictionary interface.
|
|
ExPASyDictionary
Access PRODOC at ExPASy using a read-only dictionary interface.
|
|
RecordParser
Parses Prodoc data into a Record object.
|
|
_Scanner
Scans Prodoc-formatted data.
|
|
_RecordConsumer
Consumer that converts a Prodoc record to a Record object.
|
|
__package__ = ' Bio.Prosite '
|
|
xml_support = 1
|
index_file(filename,
indexname,
rec2key=None)
| source code
|
Index a Prodoc file. filename is the name of the file. indexname is
the name of the dictionary. rec2key is an optional callback that takes a
Record and generates a unique key (e.g. the accession number) for the
record. If not specified, the id name will be used.
|
Extract PRODOC data from a web page. Raises a ValueError if no data
was found in the web page.
- Returns: str
|