Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: 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.

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.

Metadata

Release files for openff-interchange 0.5.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 openff-interchange 0.5.1
File Size Uploaded
openff_interchange-0.5.1.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for openff-interchange 0.5.1
File Interpreter ABI Platform
openff_interchange-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.8 MB

Release files / openff_interchange-0.5.1.tar.gz

Download URL openff_interchange-0.5.1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f5af8941166e9d5cf3cf11e0c669e891ea65a68d0c2bae5c78aacbaa334f2a34
BLAKE2b-256 checksum
How to use checksums
66bacfea199dfaa94b6bec47e1929ddf4a5425b4c0e53a3cfd6d7f2644d5a504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / openff_interchange-0.5.1-py3-none-any.whl

Download URL openff_interchange-0.5.1-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b9fcec246fd0e229d2894571121c60dbbf053dd475ca2077b4c1fcf9053ec7b7
BLAKE2b-256 checksum
How to use checksums
305c35aab58c4e75cc7dae6827702620eabd5bf7cb1965dcba2d3260fbe7bebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.5.1 This release

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