def bamToBed(infile, outfile):

    statement = "bamToBed -i %(infile)s > %(outfile)s" % locals()

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

    retcode = subprocess.call(statement,
                              cwd=os.getcwd(),
                              shell=True)
    if retcode < 0:
        raise OSError("Child was terminated by signal %i: \n%s\n" %
                      (-retcode, statement))

    return outfile
Initializes the current instance of the object.
dataset/ETHPy150Open CGATOxford/cgat/scripts/runSPP.py/bamToBed--crossover with--dataset/ETHPy150Open Microsoft/ApplicationInsights-Python/applicationinsights/channel/contracts/RequestData.py/RequestData._initialize