IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP.isd.Analysis.Analysis Class Reference

Class that produces analysis-related output, and is able to parse the output of a file produced by the Statistics class. More...

Detailed Description

Class that produces analysis-related output, and is able to parse the output of a file produced by the Statistics class.

Note
This class is only available in Python.

Definition at line 8 of file Analysis.py.

Public Member Functions

 add_data (self, h, lineno, colno, data)
 adds data point to hierarchy
 create_entry (self, h, lineno, el)
 adds a new entry to the hierarchy by parsing a title entry
 dump (self, h, dest, *args)
 "dump float data from history h to file dest.
 histogram (self, h, *datums, **kwargs)
 plots histogram of datum (cat,name) from hierarchy h, optionally specifying a range.
 plot (self, h, *datums, **kwargs)
 plots datum (cat,name) from hierarchy h, optionally specifying a range.
 read_AMBER_stats (self, statfile)
 reads an AMBER mden file and returns a History instance
 read_AMBER_variables (self, statfile)
 reads an AMBER mden file and returns variables present in it
 read_stats (self, statfile)
 reads a *_stats.txt file and returns a History instance
 read_variables (self, statfile)
 reads a *_stats.txt file and returns variables present in it

Member Function Documentation

◆ add_data()

IMP.isd.Analysis.Analysis.add_data ( self,
h,
lineno,
colno,
data )

adds data point to hierarchy

Definition at line 26 of file Analysis.py.

◆ create_entry()

IMP.isd.Analysis.Analysis.create_entry ( self,
h,
lineno,
el )

adds a new entry to the hierarchy by parsing a title entry

Definition at line 14 of file Analysis.py.

◆ dump()

IMP.isd.Analysis.Analysis.dump ( self,
h,
dest,
* args )

"dump float data from history h to file dest.

args can be either strings corresponding to categories, or tuples corresponding to entries of a certain category. Only one counter will be output for the whole dump, it corresponds to the counter of the first entry's category. You can always specify additional counters if needed.

Definition at line 150 of file Analysis.py.

◆ histogram()

IMP.isd.Analysis.Analysis.histogram ( self,
h,
* datums,
** kwargs )

plots histogram of datum (cat,name) from hierarchy h, optionally specifying a range.

To plot multiple data at the same time, add them sequentially.

Definition at line 138 of file Analysis.py.

◆ plot()

IMP.isd.Analysis.Analysis.plot ( self,
h,
* datums,
** kwargs )

plots datum (cat,name) from hierarchy h, optionally specifying a range.

To plot multiple data at the same time, add them sequentially. Takes x axis from the 'step' entry of the first datum. TODO.

Definition at line 122 of file Analysis.py.

◆ read_AMBER_stats()

IMP.isd.Analysis.Analysis.read_AMBER_stats ( self,
statfile )

reads an AMBER mden file and returns a History instance

Definition at line 73 of file Analysis.py.

◆ read_AMBER_variables()

IMP.isd.Analysis.Analysis.read_AMBER_variables ( self,
statfile )

reads an AMBER mden file and returns variables present in it

Definition at line 57 of file Analysis.py.

◆ read_stats()

IMP.isd.Analysis.Analysis.read_stats ( self,
statfile )

reads a *_stats.txt file and returns a History instance

Definition at line 96 of file Analysis.py.

◆ read_variables()

IMP.isd.Analysis.Analysis.read_variables ( self,
statfile )

reads a *_stats.txt file and returns variables present in it

Definition at line 38 of file Analysis.py.


The documentation for this class was generated from the following file: