gffutils
to_bedtool()
Convert any iterator into a pybedtools.BedTool object.
Note that the supplied iterator is not consumed by this function. To save to a temp file or to a known location, use the .saveas() method of the returned BedTool object.
.saveas()