rstoolbox.io.write_clustalw

rstoolbox.io.write_clustalw(df, seqID, filename=None)

Write sequences of selected designs as a CLUSTALW alignment.

If a reference_sequence exists, it is set up as the first sequence of the alignment. The name assigned to it will be the multipl longest common subsequence of all the decoys description. If none is found, or if it actually matches one of the already existing identifiers, then it will default to reference.

Parameters:
  • df (Union[DesignFrame, DataFrame]) – Data content.
  • seqID (str) – Identifier of the sequence of interest.
  • filename (str) – Output file name.
Returns:

str - CLUSTALW formated string.

Raises:
IOError:If filename exists and global option system.overwrite is not True.
AttributeError:if there is no sequence information for chain seqID of the decoys.

Note

Depends on system.overwrite and system.output.