Table of Contents

Class: SequenceParser Bio/Fasta/__init__.py

Parses FASTA sequence data into a Sequence object.

Methods   
__init__
parse
  __init__ 
__init__ (
        self,
        alphabet=Alphabet.generic_alphabet,
        title2ids=None,
        )

Initialize a Scanner and Sequence Consumer.

Arguments: o alphabet - The alphabet of the sequences to be parsed. If not passed, this will be set as generic_alphabet. o title2ids - A function that, when given the title of the FASTA file (without the beginning >), will return the name, id and description (in that order) for the record. If this is not given, then the entire title line will be used as the description.

  parse 
parse ( self,  handle )


Table of Contents

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