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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
48437ae30a4a110d2b1a04d04c3c32af62b966e14fce357d6588aab5318e60dc
|
|
MD5 |
faf8ff122741fc2db9f546df7d9a507b
|
|
BLAKE2b-256 |
8888bfd05fac2885a9b58e93558f0152a942434a599724809f32756e735b3a7f
|
Provenance
The following attestation bundles were made for fgutils-0.2.24.tar.gz
:
Publisher:
publish-package.yml
on klausweinbauer/FGUtils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
fgutils-0.2.24.tar.gz
-
Subject digest:
48437ae30a4a110d2b1a04d04c3c32af62b966e14fce357d6588aab5318e60dc
- Sigstore transparency entry: 223984004
- Sigstore integration time:
-
Permalink:
klausweinbauer/FGUtils@6637cd45d0e0a126c2636ffe79401343d2a2e776
-
Branch / Tag:
refs/tags/v0.2.24
- Owner: https://github.com/klausweinbauer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish-package.yml@6637cd45d0e0a126c2636ffe79401343d2a2e776
-
Trigger Event:
release
-
Statement type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5a888553c40a4e3d6fcfc8189c6cafd7a078b60b7eda1ba538c123b164c95e51
|
|
MD5 |
84a722adf7d5d8b3e5b1b8057b678bd7
|
|
BLAKE2b-256 |
71dfe2a860366bea845a96046b7a9d5b964407b3407d98f09b8554bf33d6ecbe
|
Provenance
The following attestation bundles were made for fgutils-0.2.24-py3-none-any.whl
:
Publisher:
publish-package.yml
on klausweinbauer/FGUtils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
fgutils-0.2.24-py3-none-any.whl
-
Subject digest:
5a888553c40a4e3d6fcfc8189c6cafd7a078b60b7eda1ba538c123b164c95e51
- Sigstore transparency entry: 223984020
- Sigstore integration time:
-
Permalink:
klausweinbauer/FGUtils@6637cd45d0e0a126c2636ffe79401343d2a2e776
-
Branch / Tag:
refs/tags/v0.2.24
- Owner: https://github.com/klausweinbauer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish-package.yml@6637cd45d0e0a126c2636ffe79401343d2a2e776
-
Trigger Event:
release
-
Statement type: