Package Bio :: Package Align :: Module FormatConvert :: Class FormatConverter
[show private | hide private]
[frames | no frames]

Class FormatConverter


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)
Method Summary
  __init__(self, to_convert)
Initialize a converter with a given object.
  to_clustal(self)
Convert the current info into a ClustalAlignment object.
  to_fasta(self)
Convert the current info into a FastaAlignment object.

Method Details

__init__(self, to_convert)
(Constructor)

Initialize a converter with a given object.

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

to_clustal(self)

Convert the current info into a ClustalAlignment object.

to_fasta(self)

Convert the current info into a FastaAlignment object.

Generated by Epydoc 2.1 on Sat Jul 16 15:49:03 2005 http://epydoc.sf.net