get_alignment#

biotite.sequence.io.clustal.get_alignment(clustal_file: ClustalFile, seq_type: type[Sequence[str]] | None = None) Alignment[source]#

Get an alignment from a ClustalFile instance.

Parameters:
clustal_fileClustalFile

The ClustalFile to be accessed.

seq_typetype[Sequence], optional

The Sequence subclass contained in the file. If not set, the type is automatically inferred as ProteinSequence or NucleotideSequence. For large sequence data it is recommended to set this parameter.

Returns:
alignmentAlignment

The alignment from the ClustalFile.