IMP logo
IMP Reference Guide  develop.031dafb4d2,2024/05/21
The Integrative Modeling Platform
IMP.spatiotemporal.analysis Namespace Reference

Functions to analyze spatiotemporal models. More...

Detailed Description

Functions to analyze spatiotemporal models.

Functions

def purity
 Function that reads in one labeled_pdf from create_DAG and returns the purity, defined as the sum of the squared probability of all trajectories. More...
 
def temporal_precision
 Function that reads in two labeled_pdfs from create_DAG and returns the temporal_precision, defined as the probability overlap between two pathway models. More...
 

Function Documentation

def IMP.spatiotemporal.analysis.purity (   labeled_pdf_fn,
  output_fn = 'purity.txt' 
)

Function that reads in one labeled_pdf from create_DAG and returns the purity, defined as the sum of the squared probability of all trajectories.

Parameters
labeled_pdf_fnstring, labeled pdf file name (including the path); labeled_pdf from the total model
output_fnstring, name of output file (default: 'temporal_precision.txt')
Returns
temporal purity, written to output_fn
Note
This function is only available in Python.

Definition at line 81 of file spatiotemporal/Analysis.py.

def IMP.spatiotemporal.analysis.temporal_precision (   labeled_pdf1_fn,
  labeled_pdf2_fn,
  output_fn = 'temporal_precision.txt' 
)

Function that reads in two labeled_pdfs from create_DAG and returns the temporal_precision, defined as the probability overlap between two pathway models.

Parameters
labeled_pdf1_fnstring, labeled pdf file name (including the path); labeled_pdf from one independent sampling
labeled_pdf2_fnstring, labeled pdf file name (including the path); labeled_pdf from another independent sampling
output_fnstring, name of output file (default: 'temporal_precision.txt')
Returns
temporal precision, written to output_fn
Note
This function is only available in Python.

Definition at line 17 of file spatiotemporal/Analysis.py.