Public Member Functions

MGT::SeqDbFasta::SeqDbFasta Class Reference

Inherits MGT::DirStore::DirStore.

List of all members.

Public Member Functions

def fastaReader
def fastaWriter
def writeFasta

Detailed Description

An interface to a collection of FASTA files.
Each file is named with some ID, such as taxonomy ID.
Methods for creating the DB grouped by taxonomy and streaming
based on lists of IDs are provided.

Member Function Documentation

def MGT::SeqDbFasta::SeqDbFasta::fastaReader (   self,
  id 
)
Return FastaReader to read from the DB for a given ID
def MGT::SeqDbFasta::SeqDbFasta::fastaWriter (   self,
  id,
  lineLen = None,
  mode = "w" 
)
Return FastaWriter to write INTO the DB for a given ID.
@param id ID of the record
@param lineLen Length of FASTA lines
@param mode String with the same semantics as 'mode' supplied to built-in open() method
def MGT::SeqDbFasta::SeqDbFasta::writeFasta (   self,
  ids,
  out 
)
Write FASTA stream for given sequence of IDs from DB into output file-like object

The documentation for this class was generated from the following file: