Difference between revisions of "Spin ID strings"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
Regular expression can, in some instances, be used to select spins. For example the string | Regular expression can, in some instances, be used to select spins. For example the string | ||
'''@H*''' will select the protons ‘H’, ‘H2’ and ‘H98’. | '''@H*''' will select the protons ‘H’, ‘H2’ and ‘H98’. | ||
+ | |||
+ | == Example == |
Revision as of 12:38, 28 February 2014
See manual
4.2.2 Molecule, residue, and spin containers
Structure
- The molecule ID token beginning with the # character,
- The residue ID token beginning with the : character,
- The atom or spin system ID token beginning with the @ character.
The full ID string specification is
#<mol name> :<res id>[, <res id>[, <res id>, ...]] @<atom id>[,<atom id>[, <atom id>, ...]]
Where the token elements are <mol name>, the name of the molecule, <res id>, the residue identifier which can be a number, name, or range of numbers,
<atom id>, the atom or spin system identifier which can be a number, name, or range of numbers.
If one of the tokens is left out then all elements will be assumed to match.
For example if the string does not contain the # character then all molecules will match the string.
If only the molecule ID component is specified, then all spins of the molecule will match.
Regular expression can, in some instances, be used to select spins. For example the string
@H* will select the protons ‘H’, ‘H2’ and ‘H98’.