IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/22
The Integrative Modeling Platform
show_stat.py
1 from __future__ import print_function
2 from IMP import ArgumentParser
3 
4 __doc__ = "Show fields in a PMI stat file."
5 
6 
7 def parse_args():
8  parser = ArgumentParser(description="Show fields in a PMI stat file.")
9  parser.add_argument("statfile", help="Name of the PMI stat file")
10  return parser.parse_args()
11 
12 
13 def main():
14  import IMP.pmi.output
15  args = parse_args()
16 
17  p = IMP.pmi.output.ProcessOutput(args.statfile)
18  fields = p.get_keys()
19  print("\n".join(sorted(fields)))
20 
21 
22 if __name__ == '__main__':
23  main()
A class for reading stat files (either rmf or ascii v1 and v2)
Definition: output.py:931
Classes for writing output files and processing them.
Definition: output.py:1