Table of Contents

Class: FormatConverter Bio/Align/FormatConvert.py

Convert between different alignment representation formats.

The basic idea behind the converter is that it takes a given format, converts it into the base Alignment class, and then can return an object in any other supported format with the info from the basal alignment.

Supported formats are: o Clustal format (.aln) o Fasta format (.fasta)

Methods   
__init__
_get_base_info
to_clustal
to_fasta
  __init__ 
__init__ ( self,  to_convert )

Initialize a converter with a given object.

Arguments: o to_convert - The class which we are going to be converting.

  _get_base_info 
_get_base_info ( self )

Retrieve all of the basal (ie Generic.Alignment) info.

The idea is that this info is present in all of the classes and this is the information that will be retained in a conversion. Format specific information will be lost.

  to_clustal 
to_clustal ( self )

Convert the current info into a ClustalAlignment object.

  to_fasta 
to_fasta ( self )

Convert the current info into a FastaAlignment object.


Table of Contents

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