

def write_bed(self, bedfile='stdout'):
    fw = must_open(d, 'w')
    for d in self:
        ((print >> fw), d.bedline)
    logging.debug('File written to `{0}`.'.format(bedfile))

dataset/ETHPy150Open tanghaibao/jcvi/variation/delly.py Delly.write_bed/VarMisuse@18/24 `bedfile`->`d`