Giter VIP home page Giter VIP logo

moleculeviewer's Introduction

MoleculeViewer

A package for visualizing molecules.

DOI

cucurbituril rendered using MoleculeViewer

MoleculeViewer is a Mathematica package that renders molecules in a manner resembling physical molecular models. In particular, multiple bonds are depicted as out-of-plane bonds.

The package supports additional features like stylized molecule depictions (ball-and-stick, spacefilling, etc.), multiple atom legends, custom coloring of atoms, atom highlighting and tooltips.

The package also provides a number of auxiliary functions that use the services of Open Babel, Imago OCR, JME, Accelrys JDraw, JChemPaint, ChEMBL Beaker, ChemSpider, NCI CACTUS, PubChem, RCSB PDB, and ZINC.

Download the paclet from the releases page, and install it by evaluating the following in Mathematica:

Needs["PacletManager`"]
PacletInstall["/path/to/paclet/MoleculeViewer-1.0.paclet"]

where "/path/to/paclet/MoleculeViewer-1.0.paclet" should be replaced with the actual path to the downloaded paclet file.

See the file molviewer.nb for more detailed information on the package. A molecule gallery gallery.nb is also provided.

moleculeviewer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

moleculeviewer's Issues

JME alternatives

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,

  1. Are there other Java-based solutions for chemical drawing that are a. small; and b. easily interfaced via JLink?

or

  1. Is there a straightforward way to get JSME to work with Mathematica?

Implement molecular surfaces

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.

Name suggestions for new multiple bond depiction style

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:

cimetidine ball-and-stick

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:

cimetidine tubes

cimetidine wireframe

(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.

Add aromaticity indicator?

I have been thinking if I should implement an aromaticity indicator in MoleculeViewer. Something like this:

aromatic rings

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?

Sources for 3D structural information with APIs

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.