def write_details(fw, details, bed):
    for a, b, depth in details:
        for i in xrange(a, b):
            gi = bed[i].accn
            print >> fw, "\t".join((gi, str(depth)))
Write per gene depth to file
dataset/ETHPy150Open tanghaibao/jcvi/compara/synteny.py/write_details