analysisยถ
- Author(s):
Nuno P. Fernandes
- Year:
2026
- Copyright:
GNU Public License v3
Added in version 1.0.0.
This module contains functions for performing structural analysis on an ensemble of protein conformations, outputting an interactive graphical dashboard.
Example applicationsยถ
Analyze an ensemble in trajectory formatยถ
The ensemblify.analysis.analyze_trajectory function can be used to create an interactive
analysis graphical dashboard from a conformational ensemble in .xtc trajectory format.
For example, we can analyze an ensemble of Histatin5 (Hst5), an intrinsically disordered peptide with 24 aminoacid residues.
Assuming that the path to the required trajectory and topology files are assigned to the variables HST5_TRAJ_PATH and HST5_TOP_PATH, respectively, and that your desired trajectory ID is โHst5โ, you can run:
>>> import ensemblify.analysis as ea
>>> ea.analyze_trajectory(HST5_TRAJ_PATH, HST5_TOP_PATH, 'Hst5')
Available Functionsยถ
analyze_trajectoryCalculate structural data and create interactive figures for given trajectory and topology files.
calculate_analysis_dataCalculate structural data for each given pair of trajectory,topology files.
create_analysis_figuresCreate interactive figures given analysis data for one or more pairs of trajectory,topology files.
calculate_ramachandran_dataCalculate a dihedral angles matrix from trajectory and topology files.
calculate_contact_matrixCalculate a contact frequency matrix from a trajectory and topology files.
calculate_distance_matrixCalculate an alpha carbon average distance matrix from a trajectory and topology files.
calculate_ss_assignmentCalculate a secondary structure assignment matrix from a trajectory and topology files.
calculate_ss_frequencyCalculate secondary structure assignment frequencies from a trajectory and topology files.
calculate_metrics_dataCalculate structural metrics for each frame of a trajectory.
create_ramachandran_figureCreate a ramachandran plot Figure from a calculated dihedral angles matrix.
create_contact_map_figCreate a contact map Figure from a calculated contact matrix.
create_distance_matrix_figCreate a distance matrix Figure from a calculated distance matrix.
create_ss_frequency_figureCreate a secondary structure frequency Figure from a secondary structure assignment frequency matrix.
create_metrics_tracesCreate Plotly Box, Histogram and Scatter (KDE) traces from calculated structural metrics data to be used in the creation of a Structural Metrics Figure.
create_metrics_figCreate a Structural Metrics Figure from previously created Box, Histogram and Scatter traces.
create_single_metrics_fig_directlyCreate a Structural Metrics Figure for a single trajectory, directly from its calculated metrics data and trajectory ID.