def bigwig(infile, contig_sizes):

    if infile.endswith(".wig"):
        outfile = infile[:-4] + ".bigwig"
    else:
        outfile = infile + ".bigwig"

    tmp, filename_sizes = tempfile.mkstemp()

    os.write(tmp, "\n".join(["\t".join(map(str, x))
             for x in contig_sizes.iteritems()]))
    os.close(tmp)

    statement = "wigToBigWig " \
                "-clip %(infile)s %(filename_sizes)s %(outfile)s " % locals()

    E.debug("executing statement '%s'" % statement)

    if E.run(statement):
        os.unlink(infile)

    os.unlink(filename_sizes)
Returns a default `Layer` mapping the MLP's last hidden representation
dataset/ETHPy150Open CGATOxford/cgat/scripts/runMEDIPS.py/bigwig--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/vae/conditional.py/Conditional._get_default_output_layer