Trees | Index | Help |
---|
Package Bio :: Package Blast :: Module NCBIStandalone :: Class BlastErrorParser |
|
AbstractParser
--+
|
BlastErrorParser
Attempt to catch and diagnose BLAST errors while parsing.
This utilizes the BlastParser module but adds an additional layer of complexity on top of it by attempting to diagnose SyntaxError's that may actually indicate problems during BLAST parsing.
Current BLAST problems this detects are: o LowQualityBlastError - When BLASTing really low quality sequences (ie. some GenBank entries which are just short streches of a single nucleotide), BLAST will report an error with the sequence and be unable to search with this. This will lead to a badly formatted BLAST report that the parsers choke on. The parser will convert the SyntaxError to a LowQualityBlastError and attempt to provide useful information.Method Summary | |
---|---|
Initialize a parser that tries to catch BlastErrors. | |
Parse a handle, attempting to diagnose errors. | |
Attempt to diagnose an error in the passed handle. | |
Inherited from AbstractParser | |
| |
|
Method Details |
---|
__init__(self,
bad_report_handle=None)
|
parse(self, handle)Parse a handle, attempting to diagnose errors.
|
_diagnose_error(self, handle, data_record)Attempt to diagnose an error in the passed handle. Arguments: o handle - The handle potentially containing the error o data_record - The data record partially created by the consumer. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Aug 10 20:05:35 2006 | http://epydoc.sf.net |