code: def bed(args):
      
      p = OptionParser(bed.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 1:
          sys.exit(not p.print_help())
  
      delt, = args
      dt = Delly(delt)
      dt.write_bed("del.bed")
docs: %prog bed del.txt
  
      Convert `del.txt` to BED format. DELLY manual here:
      <http://www.embl.de/~rausch/delly.html>
  
      Deletion:
      chr, start, end, size, #supporting_pairs, avg._mapping_quality, deletion_id
      chr1, 10180, 10509, 329, 75, 15.8667, Deletion_Sample_00000000