Skip to main content

No project description provided

Project description


moly

Molecular visualization in Jupyter (Package under development!).




Try it now:

Features:

Geometry
Volumes from Cube Files

Supports:

xyz files
Psi4 geometries
QCElemental molecules

Installation

  • git:
    git clone https://github.com/VHchavez/moly.git
    cd moly
    pip install .
    
  • pip:
    pip install moly
    
  • conda:
    coming soon!
    

  • Basic Geometry

Define a figure and add molecules to it.

import moly
fig = moly.Figure()
molecule = moly.Molecule.from_file("caffeine.xyz")
fig.add_molecule("caffeine", molecule)
fig.show()

  • Basic Layering

Geometries can be brought from different sources and be thrown in the same figure

#Molecules from QCArchive

import qcportal as ptl
client = ptl.FractalClient()

#Get molecule from QCArchive
ds = client.get_collection("ReactionDataset", "S22")
dimers = ds.get_molecules()
ammonia_dimer = dimers.loc['Ammonia Dimer', 'molecule'][0]

#Different surfaces are available. 
#Resolution can be increased if saving figure is desired. 
fig = moly.Figure(figsize=(800,800), surface="shiny")
fig.add_molecule("dimer", ammonia_dimer)
fig.add_molecule("bucky ball", moly.Molecue.from_file("bucky.xyz"))
fig.show()

Copyright

Copyright (c) 2020, VH Chavez

Acknowledgements

Project based on the Computational Molecular Science Python Cookiecutter version 1.1.
Victor H. Chavez was supported by a fellowship from The Molecular Sciences Software Institute under NSF grant OAC-1547580.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for moly, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size moly-0.2.1-py3-none-any.whl (98.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size moly-0.2.1.tar.gz (96.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page