IMP  2.3.0
The Integrative Modeling Platform
build.py
1 #!/usr/bin/env python
2 
3 __doc__ = "Build cyclic symmetric complexes in their density map."
4 
5 import IMP.cnmultifit
6 from IMP import OptionParser
7 
8 
9 def parse_args():
10  usage = """%prog [options] <parameter file>
11 
12 This program builds cyclic symmetric complexes in their density maps."""
13 
14  parser = OptionParser(usage)
15  parser.add_option("--chimera", dest="chimera", default="", metavar="FILE",
16  help="the name of the Chimera output file, if desired")
17  (options, args) = parser.parse_args()
18  if len(args) != 1:
19  parser.error("incorrect number of arguments")
20  return args[0], options.chimera
21 
22 
23 def main():
24  param_file, chimera_file = parse_args()
25  IMP.base.set_log_level(IMP.WARNING)
26  IMP.cnmultifit.do_all_fitting(param_file, chimera_file)
27 
28 if __name__ == '__main__':
29  main()
void set_log_level(LogLevel l)
Set the current global log level.
void do_all_fitting(const std::string param_filename, const std::string chimera_filename="")
High level interface to build cyclic symmetric complexes.
Generate cyclic atomic structures using cryo-electron microscopy data.
IMP::kernel::OptionParser OptionParser