Table of Contents

Class: Dictionary Bio/Fasta/__init__.py

Accesses a FASTA file using a dictionary interface.

Methods   
__getattr__
__getitem__
__init__
__len__
keys
  __getattr__ 
__getattr__ ( self,  name )

  __getitem__ 
__getitem__ ( self,  key )

  __init__ 
__init__ (
        self,
        indexname,
        parser=None,
        )

__init__(self, indexname, parser=None)

Open a Fasta Dictionary. indexname is the name of the index for the dictionary. The index should have been created using the index_file function. parser is an optional Parser object to change the results into another form. If set to None, then the raw contents of the file will be returned.

  __len__ 
__len__ ( self )

  keys 
keys ( self )

Override keys to return only valid keys.

The keys which is called normally on this dictionary will return internal values such as __filename. This just strips those out before returning.


Table of Contents

This document was automatically generated on Mon Jul 1 12:02:48 2002 by HappyDoc version 2.0.1