<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Tom,<div class=""><br class=""></div><div class="">Sorry if I got my cube files crossed up! I’m comparing several at the present so I must have just mixed it up.</div><div class=""><br class=""></div><div class="">The latest image you sent looks correct, except for the bonds as you note. (It’s a spinel.) However, the projected orbitals look correct, so the code is superimposing the volumetric data on the atomic data correctly. I tried it your script and it works terrifically! (Although I think some indentation got lost in the post on github.)</div><div class=""><br class=""></div><div class="">I simply turned off the metallic bonds and wound up with (yet another cube file):</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="37F721D1-26FA-4CC3-8B16-C0DE8AFE9D20" width="479" height="532" src="cid:D0FD69EF-9A07-4488-AE39-1068C20108DD" class=""></div><div class=""><br class=""></div><div class="">Thank you much!</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Zack</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 2, 2021, at 11:19 AM, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Zack,<div class=""><br class=""></div><div class=""> Elaine is right that ChimeraX only reads the map in Gaussian cube files, not the atoms. I was curious what your atoms looked like so I wrote a short Python script to make the atoms from your file and put it on the ChimeraX Recipes web site as an example of ChimeraX Python code.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://rbvi.github.io/chimerax-recipes/gaussian_cube_atoms/gcatoms.html" class="">https://rbvi.github.io/chimerax-recipes/gaussian_cube_atoms/gcatoms.html</a></div><div class=""><br class=""></div><div class=""> The Gaussian cube file you linked to in your original message is not the same as the one you show in your second message. In the linked file I see a lattice of aluminum, magnesium and oxygen. ChimeraX tries to make metal coordination bonds (purple dashed lines) and put bonds between various aluminum atoms and made a pretty bizarre and likely wrong picture. ChimeraX is designed for proteins so doesn't know what to do with inorganic crystals.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""></div><div class=""><span id="cid:57FC5CB4-C861-4B17-A990-5A992ECBF5C1"><wfc_K001_B329wfc.png></span><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Feb 2, 2021, at 10:42 AM, Zack Gainsforth <<a href="mailto:zackg@berkeley.edu" class="">zackg@berkeley.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Elaine,<div class=""><br class=""></div><div class="">Thanks for the feedback!</div><div class=""><br class=""></div><div class="">I think it does contain atomic coordinates because if I open the file up, the first few lines say:</div><div class=""><br class=""></div><div class=""><div class=""> Cubefile created from PWScf calculation</div><div class=""> k_point 1, band 493</div><div class=""> 112 0.000000 0.000000 0.000000</div><div class=""> 360 0.000000 0.043010 0.043010</div><div class=""> 360 0.043010 0.000000 0.043010</div><div class=""> 360 0.043010 0.043010 0.000000</div><div class=""> 13 13.000000 15.550626 7.919837 23.249520</div><div class=""> 13 13.000000 7.794637 15.500714 23.173025</div><div class=""> 13 13.000000 15.344622 7.808598 7.696103</div><div class=""> 24 24.000000 8.153563 23.302893 15.676357</div><div class=""> 24 24.000000 22.842015 15.147909 23.267895</div><div class=""> 24 24.000000 23.276582 23.168925 15.892733</div><div class=""> 24 24.000000 0.413132 15.595221 15.687712</div><div class=""> 13 13.000000 15.337306 19.401078 19.211118</div><div class=""> 24 24.000000 23.238956 26.684104 19.354277</div><div class=""> 13 13.000000 30.836280 19.498740 19.483616</div><div class=""> 13 13.000000 23.156913 11.704068 19.344564</div><div class=""> 13 13.000000 7.845982 3.847472 11.610165</div></div><div class=""><br class=""></div><div class="">So we have 13 being magnesium, and 24 being Cr, etc.</div><div class=""><br class=""></div><div class="">After the 112 atoms, it starts with the volumetric values.</div><div class=""><br class=""></div><div class="">So it sounds like perhaps I should request a feature addition to ChimeraX to implement atomic coordinates as well? </div><div class=""><br class=""></div><div class="">Following your advice though, I saved the structure as a pdb also, and loaded that and it seems to work — though there is an offset between the volumetric and atomic datasets.</div><div class=""><br class=""></div><div class=""><span id="cid:F4E38915-48B3-4AD4-BD44-C3812ED725ED" class=""><PastedGraphic-1.png></span></div><div class=""><br class=""></div><div class="">I guess I would need to manually shift one of them, so that provides a workaround for now.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Zack<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Feb 2, 2021, at 10:15 AM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Zack,<br class="">A cube file is a map format (values at points on a regular grid), and is not used for atomic coordinates. In other words, I believe your file contains only the wavefunctions. You would need to also open a file for the atomic coordinates (possible formats PDB, SDF, MOL, ...) which you may have input to Quantum Espresso, or may be able to write from the program. I've never used it, so I don't know what it writes.<br class=""><br class="">ChimeraX knows these atomic formats:<br class=""><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#atomic" class="">https://rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#atomic</a>><br class="">... and these map formats:<br class=""><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#volume" class="">https://rbvi.ucsf.edu/chimerax/docs/user/commands/open.html#volume</a>><br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D. <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><blockquote type="cite" class="">On Feb 2, 2021, at 9:45 AM, Zack Gainsforth <<a href="mailto:zackg@berkeley.edu" class="">zackg@berkeley.edu</a>> wrote:<br class=""><br class="">Hi,<br class=""><br class="">I produced some projected wavefunctions in a crystal that I'm working with using Quantum Espresso (DFT). I output these projections to a gaussian cube file using the pp.x program (built into Quantum Espresso). I'm able to read these into ChimeraX but I'm unable to see the atoms -- only the volumetric data. I tried Actions - Atoms/Bonds - Show, but I still don't see the atoms. Is there another step I should take to make them visible?<br class=""><br class="">I see something like this:<br class=""><br class=""><PastedGraphic-1.png><br class=""><br class="">(very nice!)<br class=""><br class="">I'm attaching a link to the cube file below -- I can't include it because it is 600 MB.<br class=""><br class="">Thanks,<br class=""><br class="">Zack<br class=""><br class=""><a href="https://www.dropbox.com/s/ehhli8h3qr7vd4y/wfc_k001_b329wfc.cube?dl=0" class="">https://www.dropbox.com/s/ehhli8h3qr7vd4y/wfc_k001_b329wfc.cube?dl=0</a><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class=""><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>