Skip to main content

RIsearch1 (tauso fork)

RIsearch1: RNA–RNA, RNA-DNA and DNA-DNA interaction prediction using a simplified nearest-neighbor energy model.

This fork carries RIsearch1 only. RIsearch2 and the siRNA off-target pipeline live upstream at RTH-tools/risearch; they were removed here because nothing downstream of this fork uses them. Their history is still in this repository if you need it.

What this fork changes

The fork is actively maintained and covers the RIsearch1 executable, above all the standard linear-space search path. Its goals are:

  • Correctness: fix the crashes, leaks and hangs listed in BUGFIXES.md
  • Much faster (21x to 49x) by SIMD, caching and taking heavy calc out of loops
  • Readability: functions that do one thing, named types, comments that explain why
  • Tests: unit tests, end-to-end tests, and regression against a reference binary

It is byte identical to the original, except the documented bugfixes. You may read more in HISTORY.md.

The main path that was optimized is what was previously called RIs_linspace. If the force_start path is of interest to you, please open an issue and similar changes can be performed.

Performance

Against the original C, on an idle cluster node, one core, repeated on three nodes which agree within 1%. Each timing is the best of three blocks, where a block runs the binary N times and divides by N: one run alone is short enough that a single time call would be measuring the 10 ms clock rather than the program.

queries targets upstream C 1.6.2 speedup
16 x 20 nt 4 000 records x 600 nt 6.307 s 0.262 s 24.1x
16 x 20 nt 960 records x 2 500 nt 5.296 s 0.142 s 37.2x
16 x 20 nt 120 records x 20 000 nt 4.909 s 0.106 s 46.3x
16 x 20 nt 1 record x 2 400 000 nt 4.844 s 0.126 s 38.6x
64 x 20 nt 4 000 records x 600 nt 24.135 s 1.120 s 21.5x
64 x 20 nt 960 records x 2 500 nt 20.858 s 0.567 s 36.8x
64 x 20 nt 120 records x 20 000 nt 19.532 s 0.404 s 48.3x
64 x 20 nt 1 record x 2 400 000 nt 19.323 s 0.414 s 46.7x
256 x 20 nt 4 000 records x 600 nt 95.545 s 4.562 s 20.9x
256 x 20 nt 960 records x 2 500 nt 83.100 s 2.266 s 36.7x
256 x 20 nt 120 records x 20 000 nt 78.003 s 1.605 s 48.6x
256 x 20 nt 1 record x 2 400 000 nt 77.260 s 1.566 s 49.3x

Every target file holds the same 2 400 000 nt and differs only in how it is divided into records, so the alignment work is the same in each. The 600 nt rows come out lowest because a shorter record reports more hits, and every hit costs a traceback.

At 2 000 queries, where running the C would take about half an hour a row:

queries targets 1.6.2
2 000 x 20 nt 4 000 records x 600 nt 48.948 s
2 000 x 20 nt 960 records x 2 500 nt 20.990 s
2 000 x 20 nt 120 records x 20 000 nt 12.826 s
2 000 x 20 nt 1 record x 2 400 000 nt 11.916 s

Without AVX2 -- RISEARCH_NO_AVX2=1, which also turns off the batched sweep -- 16 queries against 960 x 2 500 nt takes 2.982 s, still 1.8x the C.

The inputs are generated from a fixed seed, so the table can be reproduced:

python3 RIsearch1/tests/performance/make_bench_data.py
RIsearch -q q_16.fa -t t_2500.fa -p3 > /dev/null

Python package

A precompiled binary from this fork is published to PyPI as risearch-tauso, so RIsearch is a normal Python dependency for tauso and any other downstream tool:

pip install risearch-tauso
import risearch_tauso, subprocess
subprocess.run([risearch_tauso.executable_path(), "-q", "query.fa", "-t", "target.fa"])

Or as a CLI shim, which forwards all arguments straight to the bundled binary:

risearch-tauso -q query.fa -t target.fa
python -m risearch_tauso -q query.fa -t target.fa

The PyPI package is not canonical upstream RIsearch — it is the tauso-team fork. Use upstream if you want the unmodified tool.

Differences from upstream

Bugs fixed relative to upstream are recorded in BUGFIXES.md, and the release-by-release story is in HISTORY.md.

Building from source

Requires a C++17 compiler and CMake 3.20 or newer.

cmake -S RIsearch1 -B RIsearch1/build -DCMAKE_BUILD_TYPE=Release
cmake --build RIsearch1/build -j

That produces RIsearch1/bin/RIsearch and RIsearch1/bin/RIsearch.dbg, the second with the debug tracing compiled in. The wheel build runs the same CMake via setup.py.

Tests

./RIsearch1/build/tests/risearch1_tests

Unit tests for the nucleotide coding, the max helpers, the alignment symbols, the energy matrix, the int16 bound, the query profiles, the batched sweep and the FASTA reader, including death tests for the inputs that are refused; end-to-end tests that run main() in process with a constructed argv and assert on its output; and throughput benchmarks under Performance.*. Pass -DRISEARCH_BUILD_TESTS=OFF to skip googletest entirely, as the wheel build does.

RISEARCH_NO_AVX2=1 in the environment forces the scalar kernels, which is how the vector and scalar paths are compared from a single build.

Running

RIsearch -q query.fa -t target.fa

Both files may hold several sequences; RIsearch scans all against all. Single sequences can be given directly with -Q acgu -T acgu. See RIsearch1/Manual.pdf for the full option list.

Copyright 2021 by the contributors; see RIsearch1/README.

RIsearch1 is released under the GNU General Public License version 3. This is free software: you can redistribute it and/or modify it under the terms of that licence, either version 3 or (at your option) any later version. You should have received a copy of the GNU General Public License along with RIsearch — see the file COPYING. If not, see http://www.gnu.org/licenses/.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Citation

If you use RIsearch in a publication, please cite:

RIsearch: fast RNA-RNA interaction search using a simplified nearest-neighbor energy model. Wenzel A, Akbasli E, Gorodkin J. Bioinformatics. 2012 Nov 1;28(21):2738-46.

Contact

For problems with this fork, open an issue here. For upstream RIsearch: software+crispron@rth.dk

Metadata

Release files for risearch-tauso 1.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for risearch-tauso 1.6.2
File Size Uploaded Provenance Actions
risearch_tauso-1.6.2.tar.gz 1.1 MB With provenance Details for risearch_tauso-1.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for risearch-tauso 1.6.2
File Interpreter ABI Platform Actions
risearch_tauso-1.6.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for risearch_tauso-1.6.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 1.2 MB

Release files / risearch_tauso-1.6.2.tar.gz

Download URL risearch_tauso-1.6.2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2d556887c179d3c7ec2361c9a7232d0181e0bdf26e178630710436428f382f7b
BLAKE2b-256 checksum
How to use checksums
3169ac935688439f60d906b76c7d7ff0e22a3046f7b881560ae5b8ebc5dd5e42
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 Aug 27, 2026.

Transparency log

Release files / risearch_tauso-1.6.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL risearch_tauso-1.6.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 141.8 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a66124927a456ad5d15df2b31ece38189f966cb10a93fef8ccee6c53fcf14951
BLAKE2b-256 checksum
How to use checksums
95140188e069e158b9533cf4d470bdd91fd52e206ee0707eab273e6166711282
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 Aug 27, 2026.

Transparency log

Security for risearch-tauso 1.6.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for risearch_tauso-1.6.2.tar.gz

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 Aug 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page