26 def transform(input_pdb, input_lib, output_pdb):
29 rl.read_library_file(input_lib)
39 rc.transform(orig_h, hps, 0.9, 1e-6, 6)
51 if __name__ ==
'__main__':
56 P = optparse.OptionParser()
57 P.add_option(
'--input_pdb',
'-i', action=
'store', type=
'string',
58 help=
'input PDB file (required)')
59 P.add_option(
'--input_lib',
'-l', action=
'store', type=
'string',
60 help=
'input rotamer library file (required)')
61 P.add_option(
'--output_pdb',
'-o', action=
'store', type=
'string',
62 help=
'output PDB file (required)')
63 P.add_option(
'--verbose',
'-v', action=
'store_true',
64 help=
'show more messages')
65 P.add_option(
'--run_quick_test', action=
'store_true',
66 help=
'run quick test')
67 opts, args = P.parse_args()
68 if opts.run_quick_test
or \
69 not (opts.input_pdb
or opts.input_lib
or opts.output_pdb):
72 if not opts.input_pdb:
73 print '--input_pdb is required'
75 if not opts.output_pdb:
76 print '--output_pdb is required'
78 if not opts.input_lib:
79 print '--input_lib is required'
85 transform(opts.input_pdb, opts.input_lib, opts.output_pdb)