pybedtools.featurefuncs.add_color

pybedtools.featurefuncs.add_color(feature, cmap, norm)

Signature:

add_color(feature, cmap, norm)

Given the matplotlib colormap cmap and the matplotlib Normalize instance norm, return a new 9-field feature (extended out if needed) with the RGB tuple set according to the score.