User Tools

Site Tools


Writing /users/jbklauda/pub/wiki/data/cache/6/6193a558dc90ed4c190004bf67ecff70.captchaip failed
secondary_structure_vs_time

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
secondary_structure_vs_time [2021/11/07 19:40] – [Steps] editsecondary_structure_vs_time [2025/11/06 07:20] (current) – [Python Version] edit
Line 1: Line 1:
-**Secondary Structure using DSSP**+**Secondary Structure using STRIDE** 
 + 
 +Update 2025: An alternate version using Python is available at the end of the page - Abhi Senthilkumar
  
 The code is adopted and changed from the following script for secondary structure calculation in VMD. The code is adopted and changed from the following script for secondary structure calculation in VMD.
Line 21: Line 23:
 the line sed '1~10!d' in above means, we are only taking every 10th line of the secondary structure vs time. the line sed '1~10!d' in above means, we are only taking every 10th line of the secondary structure vs time.
          
-   - to visualize the secondary structure you can use the Matlab file ss_content.m you need to change a few things in this file:  num_residues, num_timesteps, step-size,  and residue names at the end. You can run this file locally on you pc/mac or on the cluster 
  
 +To visualize the secondary structure you can use the Matlab file ss_content.m you need to change a few things in this file:  num_residues, num_timesteps, step-size,  and residue names at the end. You can run this file locally on you pc/mac or on the cluster
 +
 +
 +{{:sec.jpg?700|}}
 +
 +===== Python Version =====
 +  - Download {{ :secondary_structure.tar.gz |}} and place it within the directory containing your .dyn files.
 +  - Install MDAnalysis, matplotlib, and pandas packages for Python if you haven't already.
 +  - Run ''python secondary_structure.py'' to calculate the secondary structure for each timestep in the simulation.
 +  - Edit ''plot_secondary_structure.py'' to specify the ''ns_per_dyn''
 +  - Run ''python plot_secondary_structure.py'' and the generated graph will be in ''ss.png''
  
- + {{:ss_python.png?400|}}
  
secondary_structure_vs_time.1636332049.txt.gz · Last modified: 2021/11/07 19:40 by edit