def RotatePdbFile( input_filename, output_filename,
                   translation, rotation,
                   do_gunzip = None):


    if do_gunzip:
        statement = "gunzip < %s" - input_filename
    else:
        statement = "cat %s" % output_filename

    u = numpy.transpose(rotation)
    statement += " | %s %s %s > %s" % (CMD_ROTATE,
                                       string.join(map(str, translation), " "),
                                       string.join(map(str, numpy.reshape(u, (9,))), " "),
                                       output_filename)

    return os.system(statement)
dataset/ETHPy150Open CGATOxford/cgat/legacy/PdbTools.py/RotatePdbFile/operator `%` -> `-`