SeqMutPlot
- class SeqMutPlot(verbose=False)[source]
Bases:
objectPlotting 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 shiftdelta_predwhen a model is bound, else bydelta_cpp) and the single-residue substitution profile, plus the combined designs ofSeqMut.combine()(a ranked-variant bar and a pairwise epistasis map).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.
- 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.