jmolScript here:

  load "mypath2/mifile2";protein2 = {*}
  Var x = {*};load append "mypath1/mifile1";protein1 = {!x}
  Var x= {*};load append "mypath3/mifile3";protein3 = {!x}

So then the variables protein1, protein2, and protein3 are all defined in
Jmol as the proper sets of atoms, and you can refer to them:

select protein1; color structure
...
file @{protein2.file}
...
file @{protein3.file}

etc.

Bob


On Wed, Jul 6, 2011 at 1:51 PM, Yingjie Lin <[email protected]> wrote:

> Hi Jmol users,
>
> Let's say I have pdbfile1, pdbfile2, pdbfile3, each contains 1 model.
> The corresponding models
> will be named 1.1 for pdbfile1, 2.1 for pdbfile2 and 3.1 for pdbfile3, if
> the files are loaded in this
>  order. So I can later use 1.1, 2.1 and 3.1 to refer to the contents of
> each file.
>
> However, in my case, I am not sure how many files, and in what order, I
> will load into Jmol. Therefore
> I don't know how to refer to the contents of different files. Is there a
> way to assign the contents
> of a file immediately after loading? Maybe something like the following:
>
> [jmol scripts]
> protein2 = load("mypath2/mifile2")
> protein1 = loadAppend("mypath1/mifile1")
> protein3 = loadAppend("mypath3/mifile3")
> [/jmol scripts]
>
>
> Thank you.
> - Yingjie
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to