CHANGE selects an optimization (when equal to 'OPTIMIZE') or randomization (when equal to 'RANDOMIZE'):
DIHEDRALS can be either a vector of dihedral angle names or a single string containing all the dihedral angle names separated by blanks. The dihedral angles involved in cyclic structures are not changed (e.g., sidechain dihedral angles in disulfide bonds and prolines). The dihedral angles that can be changed are listed at the top of the $RESDIH_LIB library: alpha, phi, psi, omega, chi1, chi2, chi3, chi4, chi5. Dihedral angle 'alpha' is the virtual dihedral angle defined by four consecutive atoms.
The bond connectivity of the MODEL has to exist before this command is executed. If you read in the model by READ_MODEL, the bond connectivity is defined by subsequent calls to READ_TOPOLOGY and GENERATE_TOPOLOGY (also make sure that SEQUENCE entry does not exist in the alignment or that no alignment is in memory).
# Example for: ROTATE_DIHEDRALS # This will optimize and randomize dihedrals in a MODEL READ_TOPOLOGY FILE = '$(LIB)/top_heav.lib' READ_PARAMETERS FILE = '$(LIB)/par.lib' # Select dihedral angle types for optimization and randomization: SET DIHEDRALS = 'phi psi omega chi1 chi2 chi3 chi4 chi5' # Read the sequence, get its topology and coordinates: READ_MODEL FILE = '1fas' SEQUENCE_TO_ALI ALIGN_CODES = '1fas', ATOM_FILES = ALIGN_CODES SEQUENCE_TO_ALI ADD_SEQUENCE = on, ALIGN_CODES = ALIGN_CODES '1fas_ini', ATOM_FILES = ALIGN_CODES GENERATE_TOPOLOGY SEQUENCE = '1fas_ini' TRANSFER_XYZ BUILD_MODEL INITIALIZE_XYZ = off ROTATE_DIHEDRALS CHANGE = 'RANDOMIZE', RAND_SEED = -2312, DEVIATION = 90.0 WRITE_MODEL FILE = '1fas.ini1' # Get restraints from somewhere and optimize dihedrals: MAKE_RESTRAINTS RESTRAINT_TYPE = 'stereo' ROTATE_DIHEDRALS CHANGE = 'OPTIMIZE' WRITE_MODEL FILE = '1fas.ini2'