[Chimera-users] select atoms near at least one other atom in original selection?
meng at cgl.ucsf.edu
Tue Nov 1 13:00:37 PDT 2016
I was going to say “not with commands” but then I thought of a way… it is somewhat circuitous, however, so you might prefer to script a more direct route.
My idea is to use findclash to identify inter-residue “contacts” where a contact is defined as VDW surfaces of atoms within X angstroms, select those pairs of atoms, and then (if you want) promote the selection of atoms to whole residues. The subtlety is that you have to define your desired cutoff in terms of separation of VDW surfaces rather than atomic center-center distance. So for VDW surfaces within 3 angstroms,
findclash sel test self overlap -3 hb 0 intraRes false select true
Maybe that will suffice…
> On Nov 1, 2016, at 11:11 AM, Oliver Clarke <olibclarke at gmail.com> wrote:
> Hi Elaine - close but not exactly. I’d like to select any residue in the current selection that is near at least one other residue which is also within the current selection - does that make sense? The idea is to identify spatial clusters within the selected residues. Maybe i’ll need to script to do this?
>> On Nov 1, 2016, at 2:04 PM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>> Hi Oli,
>> To select all residues with any atom within 10 angstroms of current selection:
>> sel sel zr<10
>> I wasn’t totally sure if that was what you wanted. If you just want atoms and not whole residues, it would be za instead of zr.
>> Elaine C. Meng, Ph.D.
>> UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
>>> On Nov 1, 2016, at 10:47 AM, Oliver Clarke <olibclarke at gmail.com> wrote:
>>> I’d basically like to perform the equivalent of “hide dust” on an atom selection. I have a bunch of mutation positions that I’ve mapped onto a structure, and I would like to create a subselection containing only those positions which are within lets say 10Å of at least one other postion in the original selection - basically to represent structural clusters of mutations on the structure. Does anyone have any suggestion how to create such a selection using Chimera’s atom selection language? It seems like zr should do it but I can’t quite figure out how.
More information about the Chimera-users