You're almost there. There are a few ways of doing this, but here's the
simplest.
# Task 0:
load files "protein.mol2" "ligand.mol"
# Task 1:
select within(6.0, true, {model=2.1}) and {model!=2.1}
(This "TRUE" parameter is new -- it indicates that you want to do
cross-model checking.)
#Task 2:
model 1.1
display selected
#Task 3:
model 1.1
isosurface sasurface 0 translucent
#Task unmentioned (display the ligand, too)
model 0.0
display displayed or model=2.1
Note that the tasks can be combined in terms of creating the isosurface.
If it were me, I'd do the following, which also takes care of ignoring
H2O in the model:
load files "protein.mol2" "ligand.mol"
model 1.1
isosurface select(within(6.0, true, model=2.1) and not solvent) \
ignore(solvent) sasurface 0 translucent
Note that "model 1.1" is important, because an isosurface has to be
created for a specific model. Or, if I wanted to also use that select
for other things, perhaps:
load files "protein.mol2" "ligand.mol"
model 1.1
select(within(6.0, true, model=2.1) and not solvent)
isosurface ignore(solvent) sasurface 0 translucent
model 0.0
display selected or model=2.1
Bob
Noel O'Boyle wrote:
>I am just starting to use Jmol and I would really appreciate some help...
>
>I have a protein file, and I have a ligand file. Task 1 is to select
>only those protein atoms within 6Ang of the ligand. Task 2 is to
>display only these selected atoms. Task 3 is to draw the isosurface of
>the selected atoms.
>
>I just cannot get as far as Task 2. Here's what I've done:
> load file:///D:/NegativeData/RUNS/dock_inactives_paper/1w2g/protein.mol2
> load APPEND file:///D:/NegativeData/data/new_set_ccdc/1w2g/ligand.mol
> select within(6.0, true, */2)
>
>The last line selects 291 atoms; since there are only 31 atoms in the
>ligand and there are 5840 atoms in the protein it looks like Task 1
>has been accomplished.
>
>At this point the applet just shows the ligand. If I try "display" it
>just says "0 atoms hidden" and doesn't change anything. Any ideas?
>
>Noel
>
>-------------------------------------------------------------------------
>SF.Net email is sponsored by:
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users