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: Patching the Molecular Structure Up: Generating the Molecular Structure Previous: Example: Water Molecules


Example: Solvation of a Solute

The atom selection feature in X-PLOR can be used to solvate a solute, such as protein or nucleic acid. Suppose the user has set up coordinates and molecular structure files for the solute (“solute.pdb" and “solute.psf") and for a box of water (“water.pdb" and “water.psf" with SEGId “WAT") that is large enough to enclose the solute. The following X-PLOR script will create a composite coordinate and molecular structure file (“overlay.pdb" and “overlay.psf") deleting all waters that penetrate the protein:
structure @solute.psf end
coordinates @solute.pdb 
structure @water.psf end
coordinates @water.pdb 

delete
   selection=
        (  byres 
         (  segid "WAT"  
            and ( ( not segid "WAT" and not ( hydrogen ) ) around 2.6 ) 
        ))
end

write structure output=overlay.psf end
write coordinates output=overlay.pdb end
If the box of water molecules is not large enough, it can be made larger by duplicating and translating the original box (cf. Section 3.10).

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