rdkit
rdkit
rdkit : Cheminformatics functionality for PostgreSQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2930 | rdkit
|
rdkit
|
202503.6 |
FEAT
|
BSD 3-Clause
|
C++
|
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
--s-d-r
|
No
|
Yes
|
No
|
Yes
|
yes
|
no
|
| Relationships | |
|---|---|
| See Also | age
hll
rum
pg_graphql
pg_jsonschema
jsquery
pg_hint_plan
hypopg
|
d13/u24/el10 rdkit build by pigsty, u24/el10 deps on inchi
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED
|
202503.6 |
18
17
16
15
14
|
rdkit |
- |
| RPM | PIGSTY
|
202503.6 |
18
17
16
15
14
|
rdkit_$v |
- |
| DEB | PGDG
|
202503.6 |
18
17
16
15
14
|
postgresql-$v-rdkit |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
el8.x86_64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
el8.aarch64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
el9.x86_64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
el9.aarch64
|
MISS
|
MISS
|
MISS
|
MISS
|
MISS
|
el10.x86_64
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
el10.aarch64
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
d12.x86_64
|
MISS
|
MISS
|
PGDG 202303.3
|
PGDG 202303.3
|
PGDG 202303.3
|
d12.aarch64
|
MISS
|
MISS
|
PGDG 202303.3
|
PGDG 202303.3
|
PGDG 202303.3
|
d13.x86_64
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
d13.aarch64
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
u22.x86_64
|
MISS
|
MISS
|
PGDG 202303.3
|
PGDG 202303.3
|
PGDG 202303.3
|
u22.aarch64
|
MISS
|
MISS
|
PGDG 202303.3
|
PGDG 202303.3
|
PGDG 202303.3
|
u24.x86_64
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
u24.aarch64
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
PIGSTY 202503.6
|
Source
pig build pkg rdkit; # build rpm/debInstall
Make sure PGDG and PIGSTY repo available:
pig repo add pgsql -u # add both repo and update cacheInstall this extension with pig:
pig install rdkit; # install via package name, for the active PG version
pig install rdkit -v 18; # install for PG 18
pig install rdkit -v 17; # install for PG 17
pig install rdkit -v 16; # install for PG 16
pig install rdkit -v 15; # install for PG 15
pig install rdkit -v 14; # install for PG 14Create this extension with:
CREATE EXTENSION rdkit;Usage
Sources: GitHub README, Cartridge docs, project site RDKit provides a PostgreSQL cartridge for cheminformatics storage, search, fingerprints, and descriptors.
CREATE EXTENSION rdkit;The cartridge adds molecular types and operators for substructure search, exact match, similarity search, fingerprint generation, and many descriptor functions.
Core Types
molfor molecule and query molecule values.bfpfor bit-vector fingerprints.sfpfor sparse count fingerprints.
Search Operators
@>checks whether the right-hand molecule is a substructure of the left-hand molecule.<@performs the reverse substructure check.@=checks exact molecular equality.#is the Dice similarity threshold operator.<%>supports Tanimoto KNN searches.<#>supports Dice KNN searches.
Fingerprints
morgan_fpandmorganbv_fpfor Morgan fingerprints.featmorgan_fpandfeatmorganbv_fpfor feature-based Morgan fingerprints.rdkit_fpfor hashed RDKit fingerprints.atompair_fp,atompairbv_fp,torsion_fp, andtorsionbv_fp.layered_fpandmaccs_fp.
Descriptor Examples
SELECT is_valid_smiles('c1ccccc1');
SELECT tanimoto_sml(morganbv_fp('c1ccccc1'::mol), morganbv_fp('c1ccccc1O'::mol));
SELECT mol_amw('c1ccccc1'::mol);
SELECT mol_hba('c1ccccc1O'::mol);
SELECT mol_numrings('c1ccccc1'::mol);Notes
- The docs describe additional molecule-validation helpers such as
is_valid_smiles,is_valid_ctab, andis_valid_smarts. - The cartridge also exposes many additional descriptor and fingerprint size GUCs, but the stub keeps only the core user-facing entry points.
Last updated on