Package Bio :: Package SearchIO :: Package BlastIO :: Module blast_tab :: Class BlastTabParser
[hide private]
[frames] | no frames]

Class BlastTabParser

source code

object --+
         |
        BlastTabParser

Parser for the BLAST tabular format.

Instance Methods [hide private]
 
__init__(self, handle, comments=False, fields=['qseqid', 'sseqid', 'pident', 'length', 'mismatch', 'gapopen'...)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(self) source code
 
_prep_fields(self, fields)
Validates and formats the given fields for use by the parser.
source code
 
_parse_commented_qresult(self)
Iterator returning `QueryResult` objects from a commented file.
source code
 
_parse_comments(self)
Returns a dictionary containing tab file comments.
source code
 
_parse_fields_line(self)
Returns a list of column short names from the 'Fields' comment line.
source code
 
_parse_result_row(self)
Returns a dictionary of parsed row values.
source code
 
_get_id(self, parsed)
Returns the value used for a QueryResult or Hit ID from a parsed row.
source code
 
_parse_qresult(self)
Generator function that returns QueryResult objects.
source code
 
_get_frag_frame(self, frag, seq_type, parsedict)
Returns `HSPFragment` frame given the object, its sequence type, and its parsed dictionary values.
source code
 
_get_frag_strand(self, frag, seq_type, parsedict)
Returns `HSPFragment` strand given the object, its sequence type, and its parsed dictionary values.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handle, comments=False, fields=['qseqid', 'sseqid', 'pident', 'length', 'mismatch', 'gapopen'...)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)