smftools.plotting.umi_plotting#
Plotting utilities for UMI bipartite graph analysis.
Functions
|
Plot a fidelity scatter of U1-U2 pairing quality. |
- smftools.plotting.umi_plotting.plot_umi_bipartite_summary(count_matrix, sample_name, reference_name, save_path=None)#
Plot a fidelity scatter of U1-U2 pairing quality.
Each point is a unique (U1_cluster, U2_cluster) pair. Position shows the fraction of that cluster's reads accounted for by this pairing (U1 fidelity on x, U2 fidelity on y). Point size and colour encode read count. Dominant 1:1 pairs cluster at (1, 1); chimeric noise sits at lower values.
- Return type:
Parameters#
- count_matrixpd.DataFrame
Rows = U1 cluster consensus sequences, columns = U2 cluster consensus sequences, values = read counts.
- sample_namestr
Sample identifier (used in title).
- reference_namestr
Reference identifier (used in title).
- save_pathPath or None
When set, saves figure as PNG at 300 dpi. Otherwise displays.