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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rlec-0.1.0.tar.gz.
File metadata
- Download URL: rlec-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2a0ae0a78eaa4cd07b654dcd1f49688099b7fd1bc97187a37f27ba65d62ee37
|
|
| MD5 |
2991052e815d9a1ecd2f428eca56de08
|
|
| BLAKE2b-256 |
0388a74ae19bcb7ec92e86c5b62ac284db26bf2366c11f2a04cba721e7cc70f2
|
File details
Details for the file rlec-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rlec-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a45fd7edf0df8ca9cdb20b60185b046daa34baf213ba704cc7a38a26229b9026
|
|
| MD5 |
abaaac6066620d030993e473a7d57b92
|
|
| BLAKE2b-256 |
4440975f20319897f1a92423d9da09983a4a90219003e1dcd6af460c591e9a15
|