Thanks, Otis,

But I need to know BEFORE I load the model(s).
I envision this as being a two-step process.
Given a PDB code, first query to find out the weight or number of atoms 
and number of models.
Then decide how to load:
-all atoms, all models?
-all atoms, model 1 only?
-alpha carbons and nucleic phosphorus atoms only?
-(for extremely large models) every third alpha carbon?

And the decision would depend on whether using JSmol or Jmol_S.
See e.g.
http://proteopedia.org/wiki/index.php/Jmol/Visualizing_large_molecules 
(written in 2011, needs updating).

-Eric

On 1/13/16 1:44 PM, Otis Rothenberger wrote:
> Eric,
>
> alert(Jmol.evaluateVar(jmolApplet0, "{*}.size”))
>
> should do the trick.
>
> Otis
> --
> Otis Rothenberger
> o...@chemagic.org
> http://chemagic.org
>
>> On Jan 13, 2016, at 1:37 PM, Eric Martz <ema...@microbio.umass.edu> wrote:
>>
>> Dear Angel (and everyone),
>>
>> For years I have wanted a way to find out (in javascript or in JSmol)
>> the number of atoms (or molecular weight) of a PDB entry before
>> attempting to load it into JSmol. But I have not known how to do this.
>>
>> If you know, please send me a sample of the code.
>>
>> When the size exceeds a threshold, I would load only alpha carbons.
>>
>> Already, for JSmol, I load only model 1 (in FirstGlance). Luckily this
>> works when there is only one model; and it prevents JSmol from freezing
>> with NMR ensembles of multiple models. But I do not know how to
>> determine the number of models in an entry before attempting to load it.
>>
>> Regards, Eric
>>
>> On 1/12/16 1:10 PM, Angel Herráez wrote:
>>> Excellent!
>>>
>>> Thanks a lot, Rolf
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to