Is it possible to read all of the models from the zip file into jmol as a 
different file number? (e.g. if there are 4 pdb files in a zip file - read them 
all in as 1.1, 2.1, 3.1 & 4.1). In v11 & 12, this is what happens when one 
issues “load xxxx.zip”.

Doug 
> On Dec 5, 2016, at 10:10 AM, Robert Hanson <hans...@stolaf.edu> wrote:
> 
> You are doing it the way you do it. Jmol has to be pointed to a specific file 
> within a ZIP file, not just the file itself. You can  access the directory of 
> the ZIP file using:
> 
> show file "xxxx.zip"
> 
> or get that list into an array variable using:
> 
> x = load("xxxx.zip").lines
> 
> or load the actual file using
> 
> x = load("xxxx.zip",true)
> 
> For example:
> 
> $ x = load("tw1.zip")
> $ print  x
> 1.pdb
> 2.pdb
> 3.pdb
> state.spt
> JmolManifest.txt
> Jmol_version_14.0.13__2014-04-01_23.19
> 
> $ print  x.lines[1]
> 1.pdb
> 
> $ x = load("tw1.zip",  true)
> $ print x.keys
> $_BINARY_$
> 1.pdb
> 2.pdb
> 3.pdb
> JmolManifest.txt
> Jmol_version_14.0.13__2014-04-01_23.19
> _IMAGE_
> _LEN_
> state.spt
> 
> $ print x["1.pdb"]
> ATOM      1  N   THR A   5      20.489  36.271 -17.176  1.00 48.85           
> N  
> ATOM      2  CA  THR A   5      19.377  35.347 -16.804  1.00 48.50           
> C  
> ATOM      3  C   THR A   5      19.861  34.234 -15.880  1.00 47.91           
> C  
> ATOM      4  O   THR A   5      20.947  34.323 -15.304  1
> ...
> 
> 
> Bob
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Sun, Dec 4, 2016 at 11:18 PM, Douglas Juers <juer...@whitman.edu 
> <mailto:juer...@whitman.edu>> wrote:
> Hello,
> 
> I have been trying to load a zip file containing pdb files. The zip file was 
> created with WinZip.:
> 
> $ load twofiles.zip
> script ERROR: java.lang.NullPointerException
> ----
>          load <<<<“twofiles.zip"
> 
> I can, however, load either file independently:
> 
> $ load twofiles.zip|3rbo.pdb
> LIGASE                                  29-MAR-11   3RBO
> CRYSTAL STRUCTURE OF N10-FORMYLTETRAHYDROFOLATE SYNTHETASE WIT
> AND FORMYLPHOSPHATE
> found biomolecule 1: A, B
> 3RBO
> 
> $ load twofiles.zip|3t2h.pdb
> HYDROLASE                               22-JUL-11   3T2H
> TETRAGONAL THERMOLYSIN IN THE PRESENCE OF TMAO
> found biomolecule 1: E
> 3T2H
> 
> I am using jmol 14.6.4_2016.11.05. The error occurs on both Mac and Windows, 
> and also in version 13. Version 12 or 11, however, read the zip file fine, 
> loading both molecules. 
> 
> Any help would be much appreciated!
> 
> -Doug
> 
> --------------------------
> Douglas Juers
> Associate Professor 
> Physics Department
> Program in BBMB
> Whitman College
> Walla Walla, WA 99362
> Phone: 509-527-5229 <tel:%28509%29%20527-5229> FAX: 509-527-5904 
> <tel:%28509%29%20527-5904>
> Web: http://www.whitman.edu/~juersdh/ <http://www.whitman.edu/%7Ejuersdh/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net <mailto:Jmol-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jmol-users 
> <https://lists.sourceforge.net/lists/listinfo/jmol-users>
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr <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
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to