openfold.data.tools.kalign

A Python wrapper for Kalign.

Classes

Kalign(*, binary_path)

Python wrapper of the Kalign binary.

class Kalign(*, binary_path)

Python wrapper of the Kalign binary.

Parameters:

binary_path (str)

align(sequences)

Aligns the sequences and returns the alignment in A3M string.

Parameters:

sequences (Sequence[str]) – A list of query sequence strings. The sequences have to be at least 6 residues long (Kalign requires this). Note that the order in which you give the sequences might alter the output slightly as different alignment tree might get constructed.

Returns:

A string with the alignment in a3m format.

Raises:
Return type:

str