Skip to main content

Library to get functional groups from molecular graphs.

Project description

FGUtils is a collection of utility functions for querying functional groups in molecules from their molecular graph representation.

Dependencies

  • Python (>= 3.11)
  • numpy (>= 1.26.4)
  • networkx (>= 3.2.1)
  • rdkit (>= 2023.09.4 optional)

Additional module dependencies.

Module Dependency
fgutils.torch torch>=2.5

Installation

You can install FGUtils using pip.

pip install fgutils

Getting Started

For a comprehensive description of FGUtils features read through the documentation. However, querying the functional groups for a molecule like acetylsalicylic acid is as simple as running the following:

>>> from fgutils import FGQuery
>>> 
>>> smiles = "O=C(C)Oc1ccccc1C(=O)O" # acetylsalicylic acid
>>> query = FGQuery()
>>> query.get(smiles)
[('ester', [0, 1, 3]), ('carboxylic_acid', [10, 11, 12])]

The output is a list of tuples containing the functional group name and the corresponding atom indices.

Acknowledgment

This project has received funding from the European Unions Horizon Europe Doctoral Network programme under the Marie-Skłodowska-Curie grant agreement No 101072930 (TACsy -- Training Alliance for Computational)

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

fgutils-0.2.24.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

fgutils-0.2.24-py3-none-any.whl (61.4 kB view details)

Uploaded Python 3

File details

Details for the file fgutils-0.2.24.tar.gz.

File metadata

  • Download URL: fgutils-0.2.24.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fgutils-0.2.24.tar.gz
Algorithm Hash digest
SHA256 48437ae30a4a110d2b1a04d04c3c32af62b966e14fce357d6588aab5318e60dc
MD5 faf8ff122741fc2db9f546df7d9a507b
BLAKE2b-256 8888bfd05fac2885a9b58e93558f0152a942434a599724809f32756e735b3a7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgutils-0.2.24.tar.gz:

Publisher: publish-package.yml on klausweinbauer/FGUtils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fgutils-0.2.24-py3-none-any.whl.

File metadata

  • Download URL: fgutils-0.2.24-py3-none-any.whl
  • Upload date:
  • Size: 61.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fgutils-0.2.24-py3-none-any.whl
Algorithm Hash digest
SHA256 5a888553c40a4e3d6fcfc8189c6cafd7a078b60b7eda1ba538c123b164c95e51
MD5 84a722adf7d5d8b3e5b1b8057b678bd7
BLAKE2b-256 71dfe2a860366bea845a96046b7a9d5b964407b3407d98f09b8554bf33d6ecbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgutils-0.2.24-py3-none-any.whl:

Publisher: publish-package.yml on klausweinbauer/FGUtils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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