From: Enrico M. <jms...@gm...> - 2022-01-27 11:06:16
|
Dear Pymol Users! I am working on the visualization of the protein-ligand contacts identified using preset.ligand_cartoon('pdb',_self=cmd) Since the command also displays some residues, which are not involved in the interactions (with the radicals located too far away) with the ligand, I need to filter the displayed side-chains focusing only on the important interactions. I am using a distance-based criterion for the selection of the residues which I am going to hide. this is what I've already tried: # display visible side chains as the sticks cmd.select('rep lines and visible and sidechain') cmd.show('sticks', 'sele') # select all visible sticks of the sidechains far away from the ligand cmd.select('sidechain & (rep sticks & visible beyond 4 of not polymer)') cmd.hide('everything', 'sele') the problem is that the "select" command with such syntax, always selects the ATOMS, but not the whole side-chains. Is it possible to hide the whole side-chain using such syntax as well as it's displayed label? Many thanks in advance! Enrico |