rstoolbox.plot.plot_alignment

rstoolbox.plot.plot_alignment(df, seqID, ax, line_break=None, matrix=None)

Make an image representing the alignment of sequences with higlights to mutant positions.

Parameters:
  • df (Union[DesignFrame, SequenceFrame]) – Data container.
  • seqID (str) – Identifier of the sequence of interest.
  • ax (Union[Axes, list() of Axes]) – Where to plot the heatmap. If a list of axis is provided, it assumes that one wants to split the alignment in that many pieces.
  • line_break (int) – Set a line break after x residues. To execute that, multiple axes must be provided.
  • matrix (str) – Identifier of the matrix used to evaluate similarity. Default is None highlight differences.
Raises:
ValueError:if input is not a DataFrame derived object.
KeyError:if reference sequence is requested but the data container does not have one.
KeyError:if there is no reference_sequence for chain seqID of the decoys.