Hi Sergey,

> How to extract only two beads within 70000? I have two beads with big
> bond distance between them and i want to obtain their id's in original
> pdb file.


PyMOL's internal bond cutoff is much smaller than your 70,000 Ang.
You will need to use the cutoff parameter if you're using distances:

# put a pseudoatom at [0,0,0]

pseudoatom bead1, pos=[0,0,0]

# put a pseudoatom at [70k, 70k, ,70k]

pseudoatom bead2, pos=[70000, 70000, 70000]

# Make a distance.  This fails, because of default max bond length

dist badDist, /bead1, /bead2

# this will succeed, however

dist goodDist, /bead1, /bead2, cutoff=125000



PyMOL will still gracefully handle the operation of selecting these
beads using the "within" operator:

PyMOL>select farAwayBead, (all and not bead2) within 125000 of bead2
 Selector: selection "farAwayBead" defined with 1 atoms.

To get their indices,

iterate farAwayBead, print index

Cheers,

-- Jason


On Tue, Apr 19, 2011 at 6:21 AM, Sergey Ivanov <[email protected]> wrote:
> How to extract only two beads within 70000? I have two beads with big
> bond distance between them and i want to obtain their id's in original
> pdb file.
>
> --
> Kind regards,
> Sergey Ivanov
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> PyMOL-users mailing list ([email protected])
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/[email protected]
>



-- 
Jason Vertrees, PhD
PyMOL Product Manager
Schrodinger, LLC

(e) [email protected]
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
PyMOL-users mailing list ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]

Reply via email to