rstoolbox.plot.
logo_plot
(df, seqID, refseq=True, key_residues=None, line_break=None, hight_prop=4, font_size=35, refplot=False, colors='WEBLOGO')¶Generates full figure classic LOGO plots.
Parameters: |
|
---|---|
Returns: |
|
See also
Example
In [1]: from rstoolbox.io import parse_rosetta_file
...: from rstoolbox.plot import logo_plot
...: import matplotlib.pyplot as plt
...: df = parse_rosetta_file("../rstoolbox/tests/data/input_2seq.minisilent.gz",
...: {"sequence": "B"})
...: df.add_reference_sequence("B", df.get_sequence("B")[0])
...: fig, axes = logo_plot(df, "B", refseq=True, line_break=50)
...: plt.tight_layout()
...:
In [2]: plt.show()
In [3]: plt.close()