11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the numeric sense) or greater than ‘11’ (in the lexographical sense). Instead of trying to resolvethis problem through some sort of internal heuristics, <strong>VMD</strong> leaves it up to the user so that 8 < 11but 11 lt 8. (Perl users should recognize this solution.)The numeric comparisons are the standard ones: , and!=. The correspondingstring comparisons are: lt, le, eq, ge, gt, andne. As in perl there is a “match” operator, =~, sothat’CA’ =~ "C.*"segname =~ "VP[1-4]" (matches VP1, VP2, VP3, and VP4, present in somevirus structures)are valid. No distinction is made between single and double quotes.5.3.8 Other selectionssequence<strong>VMD</strong> supports selection based on the one-letter amino acid sequence with the sequence selectionkeyword. This allows selections of the formsequence APDsequence "C..C" (might be used to pick out zinc fingers)sequence AATCGGATUnlike the other string selection commands which take one of three types of strings, all thestrings for sequence are taken as regular expressions (though strings with non-alphanumerics muststill be quoted to get past the input parser). The method works by taking each of the proteinand nucleic acid fragments (pfrag and nfrag) in turn and constructing the one-letter amino acidsequence. If a regular expression matches any of the sequence, the atoms in the matching residuesare selected. Multiple matches are allowed, though they cannot overlap. As is usual with regularexpressions, the largest possible match is made, so take care with expressions like C.*C.within and sameTwo useful types of selection mechanisms available in <strong>VMD</strong>are: within of and same as . The first selects all atoms within the specified distance (inÅ) from a selection, including the selection itself. Therefore, the command:within 5 of name FEselects all atoms within 5 Å of atoms named FE. One common use for this command is to limit theregion of atoms shown on the screen. Another is to find atoms that may be involved in interactions.For instance:protein within 5 of nucleicfinds the protein atoms that are nearby nucleic acids. Some selections may be sped up by shortcircuiting [§5.3.3].A related atom selection construct is exwithin, short for ’exclusive within’. The atom selection(within 3 of protein) and not protein is equivalent to exwithin 3 of protein.The same as finds all the atoms which have the same ‘keyword’ asthe atoms in the selection. This can be used for selections like75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!