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.32.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

fgutils-0.2.32-py3-none-any.whl (63.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fgutils-0.2.32.tar.gz
Algorithm Hash digest
SHA256 096ba58fa4cec8d2eb2f13a27c50dc162903441ac30c15049cc6d747100b9419
MD5 892c6c43618e099113bd5d0927cf77e3
BLAKE2b-256 9127da37e5b1973a3e0cff1f3346448c8ab081f35cf589f4e788b35b90ca1ad0

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgutils-0.2.32.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.32-py3-none-any.whl.

File metadata

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

File hashes

Hashes for fgutils-0.2.32-py3-none-any.whl
Algorithm Hash digest
SHA256 26d98b47b47aa6c3213b290054d02cbaf53d9ef48adcb50391692a7aa54235b9
MD5 ecaca38c51106cc172354329912863be
BLAKE2b-256 f54cedd42777ed4d5a16957939dde6fdf2692a02172ae5e60b9e7f2843b6de2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgutils-0.2.32-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page