Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Find pairs
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!
'''find_pairs''' is an API only function which returns a list of atom pairs. Atoms are represented as (model,index) tuples. Can be restricted to hydrogen-bonding-like contacts. WARNING: Only checks atom orientation, not atom type (so would hydrogen bond between carbons for example), so make sure to provide appropriate atom selections. == PyMOL API == <source lang="python"> list cmd.find_pairs(string selection1, string selection2, int state1=1, int state2=1, float cutoff=3.5, int mode=0, float angle=45) </source> == ARGUMENTS == * selection1, selection2 = string: atom selections * state1, state2 = integer: state-index (only positive values allowed) {default: 1} * cutoff = float: distance cutoff {default: 3.5} * mode = integer: if mode=1, do coarse hydrogen bonding assessment {default: 0} * angle = float: hydrogen bond angle cutoff, only if mode=1 {default: 45.0} == NOTE == Although this does a similar job like "[[distance]]", it uses a completely different routine and the "mode" argument has different meanings! == SEE ALSO == * [[distance]] * Selection operators [[Selection_Algebra|within, around and expand]] [[Category:Scripting]]
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Find pairs
Add topic