Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
WebChemistry Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
LiteMol:SelectionAlgebra
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Basic queries== {| class="wikitable" ! colspan="3" | List of selection queries |- !Query definition !Example !Selection description |- | <code> atomsByElement(elements: string[]) </code > | <code> atomsByElement('C'), atomsByElement('C','O') </code> | Atoms based on their element symbol (field ''_atom_site.type_symbol''). |- | <code> atomsByName(elements: string[]) </code> | <code> atomsByName('C'), atomsByName('N','CA','C','O') </code> | Atoms based on their atom name (field ''_atom_site.label_atom_id''). |- | <code> atomsById(numbers: number[]) </code> | <code> atomsById(1), atomsById(1,2,3) </code> | Atoms based on their integer identifier (field ''_atom_site.id ''). |- | <code> residuesByName(elements: string[]) </code> | <code> residuesByName('GLY'), residuesByName('ALA', 'PO4') </code> | Residues based on their residue name (field ''_atom_site.label_comp_id''). |- | <code> residuesById(numbers: number[]) </code> | <code> residuesById(100), residuesById(42,157,238) </code> | Residues based on integer identified (field ''_atom_site.auth_seq_id''). |- | <code> chainsById(elements: string[]) </code> | <code> chainsById('A'), chainsById('A', 'B') </code> | Polymer chains based on their id (field ''_atom_site.auth_asym_id''). |- | <code> backbone() </code> | <code> backbone() </code> | Extracts structure backbone defined by certain atom names. '''Protein:''' ''N'', ''CA'', ''C'', ''O''. '''Nucleotide:''' ''P'', ''OP1'', ''OP2'', ''O3' '', ''O5' '', ''C3' '', ''C5' ''. |- | <code> sidechain() </code> | <code> sidechain() </code> | Complement to the previous query, i.e. all ''polymer'' atoms without such name are reported. |- | <code> hetGroups() </code> | <code> hetGroups() </code> | ''HETATM'' atoms defined by the field ''_atom_site.group_PDB''. |- | <code> nonHetPolymer() </code> | <code> nonHetPolymer() </code> | ''ATOM'' atoms defined by the field ''_atom_site.group_PDB''. |- |<code> cartoon() </code> |<code> cartoon() </code> | Extracts atoms vital for ''polymer'' cartoon visualization based on their names: ''CA'', ''O'', ''O5' '', ''C3' '', ''N3''. |- | <code> everything() </code> | <code> everything() </code> | All atoms in the active context. |- |}
Summary:
Please note that all contributions to WebChemistry Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WebChemistry Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
LiteMol:SelectionAlgebra
(section)
Add topic