prolint.analysis.timeseries¶
Time series analysis for contact dynamics over trajectory.
Attributes¶
Classes¶
Compute per-database-molecule contact timeline for a query residue. |
|
Analyze contact dynamics over trajectory time. |
Module Contents¶
- class prolint.analysis.timeseries.DatabaseContactsAnalysis(universe, contacts: prolint.core.contact_provider.ComputedContacts)[source]¶
Bases:
prolint.analysis.base.BaseAnalysisCompute per-database-molecule contact timeline for a query residue.
Creates a binary contact matrix showing which database molecules are in contact with a specific query residue at each frame.
See also
TimeSeriesAnalysisAggregated contact counts over time
- run(query_residue: int, database_type: str | None = None, frame_start: int = 0, frame_end: int | None = None, frame_step: int = 1, top_n: int | None = None) prolint.analysis.base.AnalysisResult[source]¶
Compute binary contact matrix for a query residue.
- Parameters:
query_residue (int) – Query residue ID to analyze.
database_type (str, optional) – Filter by database residue name (e.g., “CHOL”).
frame_start (int, default=0) – First frame to process.
frame_end (int, optional) – Last frame (exclusive). Defaults to total frames.
frame_step (int, default=1) – Step between frames.
top_n (int, optional) – If specified, return only the top N database IDs with the most contacts. Useful for reducing response size when many database molecules have minimal contacts.
- Returns:
Result with data containing:
database_ids : list of int sorted database molecule IDs
frames : list of int frame indices
contact_matrix : dict mapping database_id to list of int (0 or 1)
- Return type:
- class prolint.analysis.timeseries.TimeSeriesAnalysis(universe, contacts: prolint.core.contact_provider.ComputedContacts)[source]¶
Bases:
prolint.analysis.base.BaseAnalysisAnalyze contact dynamics over trajectory time.
Computes per-frame contact counts for query residues, useful for understanding how contact behavior varies throughout the simulation.
See also
DatabaseContactsAnalysisPer-molecule binary contact timeline
KineticsAnalysisBinding kinetics and residence times
- run(database_type: str | None = None, query_residues: List[int] | None = None, frame_start: int = 0, frame_end: int | None = None, frame_step: int = 1) prolint.analysis.base.AnalysisResult[source]¶
Compute contact count time series.
- Parameters:
database_type (str, optional) – Filter by database residue name (e.g., “CHOL”).
query_residues (list of int, optional) – Specific query residues to include. If None, includes all residues with contacts.
frame_start (int, default=0) – First frame to process.
frame_end (int, optional) – Last frame (exclusive). Defaults to total frames.
frame_step (int, default=1) – Step between frames.
- Returns:
Result with data containing:
query_residues : list of int query residue IDs
frames : list of int frame indices
contact_counts : dict mapping residue_id to list of counts
- Return type: