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)

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.

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

Uploaded Source

Built Distribution

fgutils-0.1.3-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fgutils-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7106afa260234711ec6fadabb90bed35e7fcf46e07b3addd8e1747755d18f3f7
MD5 30e9a4788880d8937e186ba768a1b88a
BLAKE2b-256 6b8d8be177ae3f55b6537705e4eaf3201410fa2f27e8f29365da2fd9aff6f49e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fgutils-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for fgutils-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1908d2275d7ce3cc5bc74e7576840d92b30d0fee39e664ec84bb9350b38a7a54
MD5 50b946170d8d05d29fb0c5f28cd0bb79
BLAKE2b-256 4d92e015ebf912ea182bd01fd9ee0cc49795509f7620f7c2e5eddca15ce4d7c6

See more details on using hashes here.

Supported by

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