IMP  2.0.1
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 optparse import OptionParser
7 
8 def parse_args():
9  usage = """%prog [options] <parameter file>
10 
11 This program builds cyclic symmetric complexes in their density maps."""
12 
13  parser = OptionParser(usage)
14  parser.add_option("--chimera", dest="chimera", default="", metavar="FILE",
15  help="the name of the Chimera output file, if desired")
16  (options, args) = parser.parse_args()
17  if len(args) != 1:
18  parser.error("incorrect number of arguments")
19  return args[0], options.chimera
20 
21 def main():
22  param_file, chimera_file = parse_args()
23  IMP.base.set_log_level(IMP.WARNING)
24  IMP.cnmultifit.do_all_fitting(param_file, chimera_file)
25 
26 if __name__ == '__main__':
27  main()