nucleic.figures module¶
-
nucleic.figures.
GridSpec
¶ alias of
nucleic.figures.Grid
-
nucleic.figures.
plot_stratton_spectrum
(spectrum: nucleic.SnvSpectrum, kind: str = 'count', title: str = '') → Tuple[toyplot.canvas.Canvas, Tuple[toyplot.canvas.Canvas.cartesian, toyplot.canvas.Canvas.cartesian]][source]¶ Plot the trinucleotide spectrum of mutation.
Parameters: - spectrum – single nucleotide variants in trinucleotide contexts.
- kind – whether to plot data as counts or as a probability mass.
- title – the plot title.
Note
The spectrum must be of pyrimidine notation.