SeqMutPlot

class SeqMutPlot(verbose=False)[source]

Bases: object

Plotting class for SeqMut (Sequence Mutator) results [Breimann24a].

Visualizes the mutational landscape produced by SeqMut.scan() (a per-position substitution heatmap, colored by the model prediction shift delta_pred when a model is bound, else by delta_cpp) and the single-residue substitution profile, plus the combined designs of SeqMut.combine() (a ranked-variant bar and a pairwise epistasis map).

Every plotting method returns a (fig, ax) pair (a thin tuple subclass): unpack as fig, ax = .... For backward compatibility, the returned object also forwards attribute access to ax, so legacy ax = ...; ax.set_title(...) keeps working.

Added in version 1.0.0.

Parameters:

verbose (bool)

Methods

epistasis(df_variant[, entry, ax, figsize, cmap])

Plot the pairwise non-additivity (epistasis) of mutation pairs.

mutation_landscape(df_scan[, entry, ax, ...])

Plot the per-position mutation-scan heatmap for one sequence.

residue_mutation_impact(df_scan[, entry, ...])

Plot the substitution impact for a single residue across all substitutions.

variant_impact(df_variant[, entry, n, ax, ...])

Plot a ranked bar chart of combined variants by their impact.

__init__(verbose=False)[source]
Parameters:

verbose (bool, default=False) – If True, verbose outputs are enabled.

See also

  • SeqMut: the logic class whose mutational scan this visualizes.