pybedtools.featurefuncs.rename

pybedtools.featurefuncs.rename(feature, name)

Forces a rename of all features, e.g., for renaming everything in a file ‘exon’