pybedtools.bedtool.BedTool.colormap_normalize

BedTool.colormap_normalize(vmin: float | int | None = None, vmax: float | int | None = None, percentile: bool = False, log: bool = False) mcolors.LogNorm | mcolors.Normalize[source]

Returns a normalization instance for use by featurefuncs.add_color().

Parameters:
vmin, vmaxfloat, int, or None

vmin and vmax set the colormap bounds; if None then these will be determined from the scores in the BED file.

logbool

If True, put the scores on a log scale; of course be careful if you have negative scores

percentilebool

If True, interpret vmin and vmax as a percentile in the range [0,100] rather than absolute values.