Backward-compatible additions; existing calls and output are unchanged.
decorate_genome_axisgainsmb_ticks/mb_tick_step: label x in Mb everymb_tick_stepbp within each chromosome (reset per chromosome), with chromosome names drawn as compact off-axis text - the denser mode for genome-wide scatter QC. Plumbed throughplot_scatter_1d,plot_scatter_1d_multisample,plot_heatmap, andplot_heatmap_cnp. Default off, 50Mb step; the Mb labels are rotated byrotation(default 60 degrees) so the dense ticks do not overlap.- Version lives in the repo-root
VERSIONfile:pyproject.tomlbuilds from it (dynamic version = {file = "VERSION"}) andcnplot.__version__reads it back, falling back to the installed metadata outside a source checkout. One edit per bump. GenomeAxis(region_bed=None): build one full-length region per chromosome fromchrom_sizes, i.e. a plain whole-genome axis with no gaps, for callers that only have a sizes file.
First release of cnplot, the shared copy-number plotting library.
GenomeAxis: a genome coordinate transform built from a region BED and chromosome sizes, mapping any bin table by(#CHR, START, END).- Colormaps:
get_cn_cmap,get_ascn_cmap,get_baf_cmap,get_log2rdr_cmap,get_mixcn_cmap,get_multiclass_cmap,set_palette. - Integer copy-number profiles:
plot_cnv_profileover the seg.ucn table. - 1D genome scatter:
plot_scatter_1dand theplot_scatter_1d_multisamplebuilder, withhue/palette and an optionalexpected_dfoverlay. - 2D RDR/BAF scatter:
plot_scatter_2d(seabornJointGrid) with copy-number landmarks. - Single-cell heatmap:
plot_heatmap/plot_heatmap_cnpwith ordered categorical and posterior sidestripsand an optional value colorbar.