Wraps bedtools bedtobam
bedtools bedtobam
If self.fn is in BED/VCF/GFF format, call BEDTools’ bedToBam. If self.fn is in SAM format, then create a header out of the genome file and then convert using samtools.
samtools
pybedtools
BedTool
BEDTools
pybedtools.contrib