Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Official government website icon

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

icon-https

Secure .gov websites use HTTPS
A lock ( Lock Locked padlock icon )or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

NIH: National Institute of Diabetes and Digestive and Kidney Diseases NIH: National Institute of Diabetes and Digestive and Kidney Diseases

  next up previous contents index  Xplor-NIH home Documentation

Next: Reducing to Type-based Parameters Up: Learning Atom-based Parameters Previous: Example: Learning Unknown Equilibrium

Example: Learning Atom-based Parameters from an Ensemble of Structures

The learn statement is used to derive equilibrium geometries and energy constants simultaneously from a thermal ensemble of ten coordinate files:
        {*Only the active energy terms are affected by the learn statement.*}
flags exclude * include bonds angles dihedrals impropers end

                                           {*Initiate the learning process.*}
parameters
   learn initiate sele=(all) mode=statistics end
end

                                {*Loop through the ensemble of coordinates.*}
for $filename in ( "a1.pdb" "a2.pdb" "a3.pdb" "a4.pdb" "a5.pdb" 
                   "a6.pdb" "a7.pdb" "a8.pdb" "a9.pdb" "a10.pdb" )
    loop main

    coordinates @@$filename
    parameters 
       learn accumulate end 
    end
end loop main   

                                   {*Now we terminate the learning process.*}
parameters 
   learn terminate end 
end

           {*One could now compute energies with the learned parameters or *}
           {*reduce them to type-based parameters and write them to a file.*}

Instead of learning from an ensemble of coordinates, one could have also learned the coordinates from a trajectory (Section 12.2).



Xplor-NIH 2025-03-21
  • Privacy Policy
  • Freedom of Information Act
  • Accessibility
  • Disclaimers
  • Copyright
  • Vulnerability Disclosure Policy
  • U.S. Department of Health and Human Services
  • National Institutes of Health