A SAX builder-style class to make a parsed SeqRecord available.
This class does a lot of trickery to make things fit in the SAX
framework and still have the flexibility to use a built SeqRecord
object.
You shouldn't really need to use this class unless you are doing
something really fancy-pants; otherwise, just use the
BaseSeqRecordIndexer interfaces.
| Method Summary |
| |
__init__(self,
get_ids_callback)
Intialize with a callback function to gets id info from a
SeqRecord. |
| |
end_record(self,
tag)
Overrride the builder function to muck with the document
attribute. |
| Inherited from BuildSeqRecord |
| |
add_dbid(self,
text,
attrs)
|
| |
add_dbxref(self,
dbname_style,
dbname,
idtype,
dbid,
negate)
Store all id cross references. |
| |
add_dbxref_dbids(self,
dbname_style,
dbname,
idtype,
dbid,
negate)
Handle setting name and id attributes from the dbxref ids. |
| |
add_description(self,
text)
|
| |
add_features(self,
features)
|
| |
add_sequence(self,
(alphabet,
seq,
gapchar,
stopchar))
|
| |
start_record(self,
tag,
attrs)
|
| Inherited from Dispatcher |
| |
acquire(self,
obj,
prefix)
|
| |
characters(self,
s)
|
| |
endDocument(self)
Receive notification of the end of a document. |
| |
endElement(self,
tag)
|
| |
get_characters(self)
|
| |
save_characters(self)
|
| |
startDocument(self)
Receive notification of the beginning of a document. |
| |
startElement(self,
tag,
attrs)
|
| |
uses_tags(self)
|
| Inherited from DispatchHandler |
| |
get_supported_features(self)
|
| |
setCharacterSaver(self,
saver)
|