tpfto / moleculeviewer Goto Github PK
View Code? Open in Web Editor NEWA package for visualizing molecules.
License: MIT License
A package for visualizing molecules.
License: MIT License
As noted in its homepage, JME is deprecated. Unfortunately, the proposed replacement, JSME, does not seem to be readily interfaced with Mathematica (but this may be due to my ignorance of how to invoke and use JavaScript objects in Mathematica).
Thus,
or
Version 3 of MoleculeViewer is coming out Soon™. Among many new features that have been added, there is now a new style of depicting multiple bonds. As a preview of this upcoming functionality, here is a side-by-side comparison of a depiction of cimetidine using the old and new styles:
The new style preserves the tetrahedral angle around atom centers, just like the old parabolic depiction of multiple bonds, but looks "tighter".
Additionally, the new style also seems to look better when used along with tube and wireframe depictions:
(At the very least, both look better than the currently-used depictions by MoleculePlot3D in version 12 of Mathematica.)
Now, for the issue: I am not sure what to call this new style. Currently, I use "Classic"
to refer to the old parabolic bonds used by MoleculeViewer, and "Taut"
to refer to these new style bonds. I have not yet settled on whether this should be an option setting or something else.
Currently, MoleculeViewer is using ChemSpider, PubChem, NCI CACTUS, and the built-in ChemicalData[]
as a source of 3D coordinates of molecules. Are there other widely-used chemical databases that a. have 3D coordinates of molecules (supplied as e.g. MDL MOL files); and b. is accessible through an API? I might be able to add support for these as additional sources for MoleculeViewer.
I am planning to eventually have MoleculeViewer support the plotting of various molecule-related surfaces, like the solvent-accessible (Lee-Richards) and solvent-excluded (Connolly) surfaces, as well as electrostatic potential surfaces and molecular orbitals down the road. These represent a fair amount of nontrivial effort (ContourPlot3D[]
is often too slow for plotting these), and the algorithms for implementing these efficiently are not that straightforward to do in Mathematica.
I have been thinking if I should implement an aromaticity indicator in MoleculeViewer. Something like this:
The gnarly part is checking if Hückel's rule is satisfied in the component rings, but there are a number of gotchas in that that coding it would be a nontrivial effort.
Would this be worthwhile?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.