rstoolbox.plot.logo_plot_in_axis

rstoolbox.plot.logo_plot_in_axis(df, seqID, ax, refseq=True, key_residues=None, refplot=False, colors='WEBLOGO', **kwargs)

Generates classic LOGO plot in a given axis.

Parameters:
  • df (Union[DesignFrame, SequenceFrame]) – Data container.
  • seqID (str) – Identifier of the sequence of interest.
  • refseq (bool) – if True (default), mark the original residues according to the reference sequence.
  • key_residues (Residues of interest) – Residues of interest.
  • refplot (bool) – When True, it will reorder the residues in each position so that the reference residue will be on the bottom and setting a two-color scheme (provide a single color name in colors) that allows to quickly identify the reference type in each position.
  • colors (Union[str, dict]) – Colors to assign; it can be the name of a available color set or a dictionary with a color for each type. Available color schemes are: Weblogo (default), Hydrophobicity, Chemistry, and Charge.
Returns:

Axes - secondary axis

See also

logo_plot()