pybedtools.contrib.bigbed.bigbed

pybedtools.contrib.bigbed.bigbed(x, genome, output, blockSize=256, itemsPerSlot=512, bedtype=None, _as=None, unc=False, tab=False)[source]

Converts a BedTool object to a bigBed format and returns the new filename.

x is a BedTool object

genome is an assembly string

output is the name of the bigBed file to create.

Other args are passed to bedToBigBed. In particular, bedtype (which becomes the “-type=” argument) is automatically handled for you if it is kept as the default None.

Assumes that a recent version of bedToBigBed from UCSC is on the path.