AAMutPlot
- class AAMutPlot(verbose=False, df_scales=None)[source]
Bases:
objectPlotting class for
AAMut(Amino Acid Mutator) results [Breimann24a].Visualizes the per-scale substitution-impact table produced by
AAMut.run(): a pairwise substitution matrix, a per-scale sensitivity ranking, and a per-pair scale comparison.Every plotting method returns a
(fig, ax)pair (a thin tuple subclass): unpack asfig, ax = .... For backward compatibility, the returned object also forwards attribute access toax, so legacyax = ...; ax.set_title(...)keeps working.Added in version 1.0.0.
Methods
aa_comparison(df_impact, from_aa, to_aa[, ...])Plot the per-scale signed delta for one amino acid substitution pair.
scale_ranking(df_impact[, top_n, ax, ...])Plot the per-scale ranking of substitution sensitivity.
substitution_matrix(df_impact[, ax, ...])Plot the 20x20 amino acid substitution-impact matrix.
- __init__(verbose=False, df_scales=None)[source]
- Parameters:
verbose (bool, default=False) – If
True, verbose outputs are enabled.df_scales (pd.DataFrame, shape (n_letters, n_scales), optional) – DataFrame of amino acid scales. Default from
load_scales().
See also
AAMut: the logic class whose substitution impact this visualizes.