Skip to main content

RLEC — RNA-Ligand Extended Connectivity Fingerprint

RLEC adapts the PLEC fingerprint (Wójcikowski et al., Bioinformatics 2019) to RNA-ligand systems. For each RNA–ligand contact pair, it pairs the Morgan-style chemical environments of the RNA atom and the ligand atom across increasing depths and hashes the pairs into a count vector.

Installation

pip install rlec

Quick start

from rlec import RLECFingerprint

fp = RLECFingerprint(
    rna_depth=6,      # Morgan depth for RNA atoms
    ligand_depth=3,   # Morgan depth for ligand atoms
    fp_size=4096,     # folded vector size
    feat_set=1,       # 1 = include nucleotide type (A/U/G/C) in RNA hash
    cutoff=6.0,       # contact distance cutoff (Å)
)

vec = fp.transform("path/to/rna.pdb", "path/to/ligand.sdf")
# vec: np.ndarray shape (4096,), dtype float32

transform also accepts an RDKit Mol object as the second argument (must have a 3D conformer).

For a batch:

X = fp.transform_batch([
    ("rna1.pdb", "lig1.sdf"),
    ("rna2.pdb", "lig2.sdf"),
])
# X: np.ndarray shape (n, 4096)

Feature sets

feat_set RNA atom invariant
0 Basic ECFP (atomic num, charge, degree, aromaticity, ring)
1 + nucleotide type (A/U/G/C/T/modified) — best
2 + PBS group (Phosphate/Sugar/Base)
3 + nucleotide type + PBS group

Performance

Validated on 143 RNA–ligand complexes (LOOCV, LightGBM):

Method LOOCV r
Ligand-only ECFP 0.562
RNA-only ECFP 0.594
Element-pair FP 0.578
RLEC feat1 0.710

95% bootstrap CI: [0.616, 0.790]. RLEC vs ligand-only: Δr = +0.148 (p < 0.0005).

Requirements

  • Python ≥ 3.9
  • numpy, scipy, biopython, rdkit

Citation

If you use RLEC, please cite:

Stalin A. RLEC: RNA-Ligand Extended Connectivity Fingerprint for binding affinity prediction. (2026)

Wójcikowski M, Kukiełka M, Stepniak-Konieczna M, Antosiewicz JM, Siedlecki P. Development of a protein–ligand extended connectivity (PLEC) fingerprint and its application for virtual screening. Bioinformatics 2019;35(8):1334–1341.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlec-0.2.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

rlec-0.2.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file rlec-0.2.0.tar.gz.

File metadata

  • Download URL: rlec-0.2.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.13

File hashes

Hashes for rlec-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1f346371db19cb8288bba82d7aebfea2d558b4cb5c78179c57de0487e7b57685
MD5 f5b50de99bf738785c84700bf4fd89b1
BLAKE2b-256 c6e108074867a38b5120d3b7ea1fe0cc6af877b9c834d37ae4299f2e54e29479

See more details on using hashes here.

File details

Details for the file rlec-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rlec-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.13

File hashes

Hashes for rlec-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9ad81d5fdd4613f2946ace838af5c90891af7028e9fc0f41342bc43349adc00
MD5 12263a6eaef6b59e3c59d077c8455c97
BLAKE2b-256 abc15f26c2f6650f32b2634dcc00e240883d359067df0ae972ac11b024735b21

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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