This release is a pre-release and may not be stable for production use.
RIsearch for Python
RIsearch predicts RNA and DNA interactions: RNA-RNA, DNA-DNA and RNA-DNA hybrids. You give it query sequences, such as miRNAs or siRNAs, and a set of targets, such as a transcriptome. It reports every duplex whose predicted free energy is at or below a threshold, with coordinates, strand, energy and the pairing pattern, as a Polars DataFrame.
This package wraps the same Rust library as the risearch command-line tool, a rewrite of RIsearch2.
It is a pre-release: options and output may still change before 3.0.0.
Installation
pip install risearch
or uv add risearch.
Wheels are built for Linux x86_64 (manylinux) and macOS on Apple Silicon, for Python 3.10 and newer.
On other platforms pip builds from the source distribution, which needs Rust 1.88 or newer.
On older x86-64 CPUs, or x86-64 Python running under Rosetta, install the compatibility Polars runtime; the module is still imported as polars:
pip install "risearch[lts-cpu]"
The package does not install the risearch command-line program; its releases ship prebuilt binaries.
Quick start
import risearch
risearch.index("targets.fa", "targets.idx") # build once
targets = risearch.TargetRegistry.open("targets.idx") # reuse for every search
hits = risearch.search("mirnas.fa", targets)
hits has one row per interaction.
With the example in the repository, two human miRNAs against the 19 transcripts of RHOC in tests/data:
>>> hits.sort("energy", "target_name", "t_start").select(
... "query_name", "target_name", "t_start", "t_end", "strand", "energy"
... ).head(3)
shape: (3, 6)
┌────────────────────────────┬─────────────────────────────────┬─────────┬───────┬────────┬──────────┐
│ query_name ┆ target_name ┆ t_start ┆ t_end ┆ strand ┆ energy │
│ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- │
│ str ┆ str ┆ u64 ┆ u64 ┆ str ┆ f64 │
╞════════════════════════════╪═════════════════════════════════╪═════════╪═══════╪════════╪══════════╡
│ hsa-miR-24-3p MIMAT0000080 ┆ ENSG00000155366|ENST00000527563 ┆ 481 ┆ 505 ┆ + ┆ -25.3257 │
│ hsa-miR-24-3p MIMAT0000080 ┆ ENSG00000155366|ENST00000285735 ┆ 305 ┆ 322 ┆ + ┆ -23.0914 │
│ hsa-miR-24-3p MIMAT0000080 ┆ ENSG00000155366|ENST00000285735 ┆ 1373 ┆ 1398 ┆ - ┆ -21.7137 │
└────────────────────────────┴─────────────────────────────────┴─────────┴───────┴────────┴──────────┘
Coordinates are 0-based and inclusive, unlike the 1-based CLI output. The row order can change from run to run, so sort when you need a stable order.
The documentation covers every function and option, the result columns, the energy models and logging.
Citation
If you use RIsearch, please cite:
Roncelli S, Favaro L, Anthon C, Gorodkin J. RIsearch and RIOT: An integrated, high-performance framework for RNA-RNA interaction and siRNA off-target prediction. Bioinformatics.
License
Metadata
Release files for risearch 3.0.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| risearch-3.0.0a4.tar.gz | 178.2 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| risearch-3.0.0a4-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| risearch-3.0.0a4-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 1.8 MB
Release files / risearch-3.0.0a4.tar.gz
| Download URL | risearch-3.0.0a4.tar.gz |
|---|---|
| Size | 178.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a1b4d76eade055934edab550e4ad6ff54898fbc18d9acd3ca2a8de8e7b6d7fe
|
|
BLAKE2b-256 checksum How to use checksums |
1fc40ba734d912870ae0a38d53c2945101bd05507af62431c002d1ba0a2ff8b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / risearch-3.0.0a4-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | risearch-3.0.0a4-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 899.4 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a3837f412cb759bb806b485ea5b9c1b888cf24ff7a0c753777e405189ce8b6a1
|
|
BLAKE2b-256 checksum How to use checksums |
f8d5d836fed98205747d4c40948cf6a156e8f6717bba93db6c40d2d10c4c737d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / risearch-3.0.0a4-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | risearch-3.0.0a4-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 759.2 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a5aa1a4256329d7a9261e226f2bb89caa4845fdb7bdb6143e8ed77dc4d9c55b1
|
|
BLAKE2b-256 checksum How to use checksums |
1c39fd29a0e6679cd3013e6a3bcc46211a9a8061effc4b51ad65e261c5af5176
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency log