biotite.sequence.io.clustal#

This subpackage is used for reading and writing sequence alignment objects using the ClustalW format (.aln).

This package contains the ClustalFile, which provides a dictionary-like interface to ClustalW files, where sequence names are keys and gapped sequence strings are the corresponding values.

Furthermore, the package contains convenience functions for getting/setting directly Alignment objects, rather than strings.

Content#

ClustalFile

This class represents a file in ClustalW format (.aln).

get_alignment

Get an alignment from a ClustalFile instance.

set_alignment

Fill a ClustalFile with gapped sequence strings from an alignment.