rstoolbox.io.write_mutant_alignments

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

Writes a text file containing only the positions changed with respect to the reference_sequence.

The format will be CLUSTALW but residues that repeat the reference_sequence are substituted by “.”.

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.