Skip to main content

A SEAMM plug-in to read common formats in computational chemistry

Project description

SEAMM Read Structure Plug-in

GitHub pull requests Build Status Code Coverage Code Quality Documentation Status Updates for Dependencies PyPi VERSION

A SEAMM plug-in to read common formats in computational chemistry

The current version uses Open Babel as an engine to parse various formats such as PDB, Mol2 or XYZ and transform them into the SEAMM structure format for further use in SEAMM flowcharts.

Features

  • Emphasis in ease-of-use and simplicity. The public interface consists of a single function.

  • Automatic file type recognition.

  • OpenBabel as an engine to parse formats, but other engines can be easily implemented.

  • Easily extensible to new formats.

  • Current support for PDB, Mol2 and XYZ files.

Example

import read_structure_step
seamm_structure = read_structure_step.read("spc.xyz")

Acknowledgements

This package was created with Cookiecutter and the molssi-seamm/cookiecutter-seamm-plugin project template.

Developed by the Molecular Sciences Software Institute (MolSSI), which receives funding from the National Science Foundation under award ACI-1547580

History

2023.1.24 – Added handler for XYZ files and added properties

  • Added a custom handler for XYZ files to cope with some of the variant formats.

    • Supports files with no atom count on the first line

    • Supports the variant used in the Minnesota Solubility database, which has 3 header lines.

  • Add capability to store properties into the database for formats such as MOPAC and SDF that can handle properties. Also can output the properties when writing the files.

  • Fixed bugs if the system name or configuration name is not a string, but rather a number.

2022.10.28 – Fixed bug reading cif and mmcif files

  • There was a bug that caused a crash when reading cif and mmcif files, and potentially some other formats. It has been fixed throughout.

  • The standard error for properties were missing a commma in the property name. The comma is standard elsewhere in SEAMM so add it here: ‘<prop>, stderr’

2022.10.26 – Handling OpenBabel error messages for MOPAC .mop files

Hiding messages about errors Kekulizing structures, which doesn’t seem to be a serious issue, and printing any other messages as warnings.

2021.2.12 (12 February 2021)

  • Updated the README file to give a better description.

  • Updated the short description in setup.py to work with the new installer.

  • Added keywords for better searchability.

2021.2.4 (4 February 2021)

Updated for compatibility with the new system classes in MolSystem 2021.2.2 release.

2020.12.5 (5 December 2020)

Internal: switching CI from TravisCI to GitHub Actions, and in the process moving documentation from ReadTheDocs to GitHub Pages where it is consolidated with the main SEAMM documentation.

2020.8.1 (1 August 2020)

Removed leftover debug print statements.

0.9 (15 April 2020)

  • General bug fixing and code cleanup.

  • Part of release of all modules.

0.7.1 (23 November 2019)

First release on PyPI.

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

read_structure_step-2023.1.24.tar.gz (601.1 kB view details)

Uploaded Source

Built Distribution

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

read_structure_step-2023.1.24-py2.py3-none-any.whl (72.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file read_structure_step-2023.1.24.tar.gz.

File metadata

  • Download URL: read_structure_step-2023.1.24.tar.gz
  • Upload date:
  • Size: 601.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for read_structure_step-2023.1.24.tar.gz
Algorithm Hash digest
SHA256 8576583452f0f9a6d8050d47447beeb9a1415420b6506e3018c8fe18d0c08877
MD5 bee333e1bf73df75db0421dc70c8be92
BLAKE2b-256 bcb1e203e7b9f210ccee0f0a20566c168c8648d96de1e44a629c84ffe8924e23

See more details on using hashes here.

File details

Details for the file read_structure_step-2023.1.24-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for read_structure_step-2023.1.24-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 654b7ae15e8066b8e42b17f0f35d56858e7d5df44d04d1dffee1b5e869110591
MD5 e8a35ad5b6c67c3fbf96103b413e4f99
BLAKE2b-256 a9a479ee55f9b703e704f200bc77a2a9639f9426d5100e7169c228857931af07

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