Bio.SearchIO.BlastIO.blast_tab module¶
Bio.SearchIO parser for BLAST+ tab output format, with or without comments.
- class Bio.SearchIO.BlastIO.blast_tab.BlastTabIndexer(filename, comments=False, fields=_DEFAULT_FIELDS)¶
Bases:
Bio.SearchIO._index.SearchIndexer
Indexer class for BLAST+ tab output.
- __init__(self, filename, comments=False, fields=_DEFAULT_FIELDS)¶
Initialize the class.
- __iter__(self)¶
Iterate over the file handle; yields key, start offset, and length.
- get_raw(self, offset)¶
Return the raw bytes string of a QueryResult object from the given offset.
- __abstractmethods__ = frozenset({})¶
- class Bio.SearchIO.BlastIO.blast_tab.BlastTabParser(handle, comments=False, fields=_DEFAULT_FIELDS)¶
Bases:
object
Parser for the BLAST tabular format.
- __init__(self, handle, comments=False, fields=_DEFAULT_FIELDS)¶
Initialize the class.
- __iter__(self)¶
Iterate over BlastTabParser, yields query results.
- class Bio.SearchIO.BlastIO.blast_tab.BlastTabWriter(handle, comments=False, fields=_DEFAULT_FIELDS)¶
Bases:
object
Writer for blast-tab output format.
- __init__(self, handle, comments=False, fields=_DEFAULT_FIELDS)¶
Initialize the class.
- write_file(self, qresults)¶
Write to the handle, return how many QueryResult objects were written.