home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
2.20.0
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
lib
IMP
sampcon
version 2.20.0
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()
IMP::pmi.output.ProcessOutput
A class for reading stat files (either rmf or ascii v1 and v2)
Definition:
output.py:935
IMP::pmi.output
Classes for writing output files and processing them.
Definition:
output.py:1