entities.molecule.DSSPCalculation
entities.molecule.DSSPCalculation(entity)Secondary structure calculated with DSSP, as the sec_struct calculation
Get it with mol.calculations.dssp(), which sets it up if needed. Its methods choose what is shown: the secondary structure of each frame, or an average over a sliding window of frames or over the whole trajectory. Uses MDAnalysis.analysis.dssp.
Attributes
| Name | Description |
|---|---|
| is_setup | Whether DSSP is set up as the sec_struct calculation |
Methods
| Name | Description |
|---|---|
| compute_frame | Run DSSP on the current frame only and return the sec_struct attribute |
| set_selection | Change the selection DSSP is run on, keeping the current display option |
| show_none | Do not show secondary structures |
| show_per_frame | Show secondary structures calculated per frame |
| show_sliding_window_average | Show average secondary structures of a sliding window of frames |
| show_trajectory_average | Show average secondary structures across all frames |
compute_frame
entities.molecule.DSSPCalculation.compute_frame(selection='protein')Run DSSP on the current frame only and return the sec_struct attribute
This does not set up the sec_struct calculation, see mol.calculations.dssp().
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| selection | str | MDAnalysis selection string limiting the atoms DSSP is run on, default is “protein” | 'protein' |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | Per-atom secondary structure: 0 not protein, 1 helix, 2 sheet, 3 loop |
set_selection
entities.molecule.DSSPCalculation.set_selection(selection)Change the selection DSSP is run on, keeping the current display option
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| selection | str | MDAnalysis selection string limiting the atoms DSSP is run on | required |
show_none
entities.molecule.DSSPCalculation.show_none()Do not show secondary structures
show_per_frame
entities.molecule.DSSPCalculation.show_per_frame()Show secondary structures calculated per frame
show_sliding_window_average
entities.molecule.DSSPCalculation.show_sliding_window_average(
window_size=5,
threshold=None,
)Show average secondary structures of a sliding window of frames
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| window_size | int | Size of the sliding window, default is 5 frames | 5 |
| threshold | float | None | Threshold to compare the mean against [0.0 - 1.0]. When None, no threshold comparison is made | None |
show_trajectory_average
entities.molecule.DSSPCalculation.show_trajectory_average(threshold=None)Show average secondary structures across all frames
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| threshold | float | None | Threshold to compare the mean against [0.0 - 1.0]. When None, no threshold comparison is made | None |