Skip to main content

A project (and object) for storing, manipulating, and converting molecular mechanics data.

Reason this release was yanked:

Non-maintainer uploaded package to pypi without coordinating with maintainers, pypi package ownership was transferred amicably to maintainers. Pypi releases of openforcefield software may be available at a later date, but issues with unavailable dependencies need to be resolved first.

Project description

OpenFF Interchange

Test status CI Status pre-commit.ci status
Code quality pre-commit Codecov coverage
Latest release GitHub release (latest by date including pre-releases)
User support Documentation Status Discussions

A project (and object) for storing, manipulating, and converting parametrized chemical systems.

Documentation

Documentation for Interchange, including examples, a brief user guide, release history, and API docs, is available on the OpenFF website. Example notebooks are rendered online among examples from other projects in the OpenFF ecosysytem docs.

How to cite

Please cite Interchange using the Zenodo record of the latest release or the version that was used. The BibTeX reference of the latest release can be found at this link.

Installation

Recent versions of the OpenFF Toolkit (0.11.0+, released August 2022) install Interchange by default through its Conda package.

Interchange can also be installed manually via mamba (or conda, etc.):

mamba install openff-interchange -c conda-forge

Getting started

The Interchange object serves primarily as a container object for parametrized chemical systems. Its key use case involves SMIRNOFF force fields and chemical topologies prepared via the OpenFF Toolkit. The resulting object stores parametrized chemical systems and provides APIs for export to common formats.

from openff.toolkit import ForceField, Molecule, Quantity

# Use the OpenFF Toolkit to generate a molecule object from a SMILES pattern
molecule = Molecule.from_smiles("CCO")

# Generate a conformer to be used as atomic coordinates
molecule.generate_conformers(n_conformers=1)

# Convert this molecule to a topology
topology = molecule.to_topology()

# Define periodicity via box vectors
topology.box_vectors = Quantity([4, 4, 4], "nanometer")

# Load OpenFF 2.0.0 "Sage"
sage = ForceField("openff-2.0.0.offxml")

# Create an Interchange object - can also use Interchange.from_smirnoff()
out = sage.create_interchange(force_field=sage, topology=topology)

# Convert the Interchnage object to an OpenMM System
system = out.to_openmm()

# or write to GROMACS files
out.to_gromacs(prefix="out")

# or write to Amber files
out.to_amber(prefix="out")

# or store as JSON
json_blob = out.json()

For more functionality, usage guidelines, and examples, please consult the full documentation

Developing

See the Development guide.

Copyright

Copyright (c) 2020, Open Force Field Initiative

License

The source code of Interchange is hosted on GitHub and is available under the MIT license (see the file LICENSE). Some parts inherit from code distributed under other licenses, as detailed in LICENSE-3RD-PARTY.

Acknowledgements

Project based on the Computational Molecular Science Python Cookiecutter version 1.2.

Project details


Download files

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

Source Distribution

openff_interchange-0.5.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openff_interchange-0.5.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file openff_interchange-0.5.1.tar.gz.

File metadata

  • Download URL: openff_interchange-0.5.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for openff_interchange-0.5.1.tar.gz
Algorithm Hash digest
SHA256 f5af8941166e9d5cf3cf11e0c669e891ea65a68d0c2bae5c78aacbaa334f2a34
MD5 4f10dd8ea250aff73fb4062f51c9be6e
BLAKE2b-256 66bacfea199dfaa94b6bec47e1929ddf4a5425b4c0e53a3cfd6d7f2644d5a504

See more details on using hashes here.

File details

Details for the file openff_interchange-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openff_interchange-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9fcec246fd0e229d2894571121c60dbbf053dd475ca2077b4c1fcf9053ec7b7
MD5 d100221df22fbf814fc09fb50d2db18f
BLAKE2b-256 305c35aab58c4e75cc7dae6827702620eabd5bf7cb1965dcba2d3260fbe7bebe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page