Skip to main content


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

Metadata

Release files for moly 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moly 0.2.1
File Size Uploaded
moly-0.2.1.tar.gz 96.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moly 0.2.1
File Interpreter ABI Platform
moly-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 194.9 kB

Release files / moly-0.2.1.tar.gz

Download URL moly-0.2.1.tar.gz
Size 96.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0a563c40e136a0e9a6c6412e755582646a8576fdfd67af2a905e977426465adf
BLAKE2b-256 checksum
How to use checksums
42273ecf8c4548e7b62c79789e74ea008d2732cfe5a26be0b371aeacd1ba697a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200710 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

Release files / moly-0.2.1-py3-none-any.whl

Download URL moly-0.2.1-py3-none-any.whl
Size 98.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e5f2971a7fa502c0f3ffe45a365c3d34fa128c94f9b2f35b3c565aa15cf3529
BLAKE2b-256 checksum
How to use checksums
12e521bbe8baacba330d13035d3e76cb18d6c71da7a2b13ccb39a7ede70a3346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200710 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page