3 __doc__ =
"Calculate RMSD between a model and the reference."
6 from IMP
import OptionParser
9 usage =
"""%prog [options] <parameter file> <transformations file>
12 This program calculates the RMSD between modeled cyclic symmetric complexes and
13 the reference structure. The RMSD and cross correlation of each complex is
14 written into a file called rmsd.output.
16 Notice: no structural alignment is performed!"""
19 parser.add_option(
"--vec", dest=
"vec", default=
"", metavar=
"FILE",
20 help=
"output the RMSDs as a vector into the named "
22 parser.add_option(
"--start", dest=
"start", default=0, type=
"int",
23 help=
"first model in transformations file to compare "
24 "with the reference (by default, model 0)")
25 parser.add_option(
"--end", dest=
"end", default=-1, type=
"int",
26 help=
"last model in transformations file to compare "
27 "with the reference (by default, the final model)")
28 (options, args) = parser.parse_args()
30 parser.error(
"incorrect number of arguments")
34 opts, args = parse_args()
39 open(opts.vec,
'w').write(
" ".join([
'%f' % x
for x
in rmsds]))
41 if __name__ ==
'__main__':
Floats get_rmsd_for_models(const std::string param_filename, const std::string trans_filename, const std::string ref_filename, int start_model=0, int end_model=-1)
void set_log_level(LogLevel l)
Set the current global log level.
See IMP.cnmultifit for more information.
IMP::kernel::OptionParser OptionParser