Skip to main content

quasigraph: Chemical and Geometric Descriptor Toolkit for Machine Learning Models.

Project description

PyPI - License PyPI DOI

Quasigraph is an open-source toolkit designed for generating chemical and geometric descriptors to be used in machine learning models.

Installation

The easiest method to install quasigraph is by utilizing pip:

$ pip install quasigraph

Getting started

from ase.build import molecule
from quasigraph import QuasiGraph

# Initialize an Atoms object for methanol (CH3OH) using ASE's molecule function
atoms = molecule('CH3OH')

# Instantiate a QuasiGraph object containing chemical and coordination numbers
qgr = QuasiGraph(atoms)

# Convert the QuasiGraph object into a pandas DataFrame
df = qgr.get_dataframe()

# Convert the QuasiGraph object into a vector
vector = qgr.get_vector()

Descriptor

The descriptor can be separated into two parts, a chemical part and a geometric part.

Chemical part

The chemical part of the descriptor employs the Mendeleev library, incorporating atomic details like the valence electron concentration, covalent radius, atomic radius, Pauling electronegativity and electron affinitity for every element within the object.

For example, for methanol (CH3OH) we have the table:

VEC covalent_radius en_pauling
0 4 0.75 2.55
1 6 0.63 3.44
2 1 0.32 2.2
3 1 0.32 2.2
4 1 0.32 2.2
5 1 0.32 2.2

Geometric part

The geometric part involves identifying all bonds and computing the coordination numbers for each atom, indicated as CN. Additionally, the generalized coordination number (GCN)[^1] is determined by summing the coordination numbers of the neighboring ligands for each atom and normalizing this sum by the highest coordination number found in the molecule.

Figure 1 - Schematic representation of the methanol molecule, indicating the chemical symbol and coordination number (CN) for every atom.

For example, for methanol (CH3OH) we have the geometric data, as shown in Fig. 1.

CN GCN
4 1.25
2 1.25
1 1.00
1 0.50
1 1.00
1 1.00

License

This is an open source code under MIT License.

Acknowledgements

We thank financial support from FAPESP (Grant No. 2022/14549-3), INCT Materials Informatics (Grant No. 406447/2022-5), and CNPq (Grant No. 311324/2020-7).

[^1]: Calle-Vallejo, F., Martínez, J. I., García-Lastra, J. M., Sautet, P. & Loffreda, D. Fast Prediction of Adsorption Properties for Platinum Nanocatalysts with Generalized Coordination Numbers, Angew. Chem. Int. Ed. 53, 8316-8319 (2014).

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

quasigraph-25.3.2.tar.gz (146.8 kB view details)

Uploaded Source

Built Distribution

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

quasigraph-25.3.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file quasigraph-25.3.2.tar.gz.

File metadata

  • Download URL: quasigraph-25.3.2.tar.gz
  • Upload date:
  • Size: 146.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for quasigraph-25.3.2.tar.gz
Algorithm Hash digest
SHA256 7908e6e081612a5c594a82beba43bb500bb2648155949326615508fae43a6963
MD5 91eb943b8ca9b604419078a66f7258d0
BLAKE2b-256 eb9ac6a591b14ddc1f8e68bfeddebb2c5e3455edc7c6ed84a05a330f1d0bc364

See more details on using hashes here.

File details

Details for the file quasigraph-25.3.2-py3-none-any.whl.

File metadata

  • Download URL: quasigraph-25.3.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for quasigraph-25.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0d8b448b3a0e243d3bb2675b366337761978aeb1fc5925ddb340d179370125
MD5 dedeb748af537ad5fc790eb0efad0487
BLAKE2b-256 016207e0e75f0a8d7dd9fcbc317334d748594e1c9501f21811ad695bc11598c8

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