pybedtools.featurefuncs.center

pybedtools.featurefuncs.center(feature, width=100)

Return the width bp from the center of a feature. If a feature is smaller than width, then return the entire feature.