This directory contains template files for calculating alpha scores of peptides using VMD's Colvars module. For detailed documentation on the alpha score collective variable in Colvars, refer to the Colvars Reference Manual.
template_colvar.tcl: Tcl script for running the analysistemplate_colvar.inp: Colvars configuration file
-
Edit the input variables in
template_colvar.tcl:set psf_file "path/to/your/structure.psf" # Your PSF file set traj_dir "path/to/your/trajectories/" # Directory with DCD files set output_file "colvar_output.dat" # Output file name set colvar_config "colvar.inp" # Colvars config file
-
Edit
template_colvar.inpto match your system:- Update
psfSegIDto match your peptide's segment name - Adjust
residueRangeto include the residues you want to analyze - Modify boundaries if needed (default: 0.0 to 1.0)
- Update
-
Run the analysis:
vmd -e template_colvar.tcl
The script generates a data file with three columns:
- Frame number
- DCD filename
- Alpha score value
- The alpha score is calculated using VMD's Colvars module
- Values are clamped between 0.0 and 1.0 for histogram purposes
- Make sure your PSF file has the correct segment names and residue numbering