Skip to main content

pyrisearch-tauso

A Python API over the RIsearch binary that risearch-tauso ships.

pip install pyrisearch-tauso

That pulls in risearch-tauso for the binary and pyarrow for reading what it prints. To get only the binary and its command line, install risearch-tauso on its own.

One search, buffered

import pyrisearch_tauso as ris

result = ris.run(["-q", "queries.fa", "-t", "targets.fa", "-s", "900", "-p2"])
for line in result.stdout.splitlines():
    qname, qbeg, qend, tname, tbeg, tend, score, energy = line.split("\t")

A run that fails raises RIsearchError, carrying what RIsearch wrote to stderr, so an empty result means no hits rather than a search that never happened.

One search, streamed

RIsearch prints a line per hit and that count grows with the product of the inputs: sixteen 20-nt queries against 4000 records of 600 nt at -s 900 come to 16.4 million lines. stream() reads them as they are produced.

import pyarrow as pa
import pyrisearch_tauso as ris

parts = []
with ris.stream(["-q", "queries.fa", "-t", "targets.fa", "-s", "900"],
                columns=("qname", "tname", "energy")) as batches:
    for batch in batches:
        parts.append(
            pa.Table.from_batches([batch])
            .group_by(["qname", "tname"]).aggregate([("energy", "min")])
        )

Reducing each batch as it arrives bounds memory by block_size; collecting the batches into one table bounds it by the number of hits instead. On the 16.4 million hit run above, that is 689 MB against 2106 MB for the buffered run(), in the same wall time -- RIsearch's own work dominates all of them.

stream() reads the eight-column -p2 table and passes -p2 itself, so leave -p out of args.

Metadata

Release files for pyrisearch-tauso 0.1.0

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

Source distribution (sdist)

Source distribution for pyrisearch-tauso 0.1.0
File Size Uploaded Provenance Actions
pyrisearch_tauso-0.1.0.tar.gz 9.5 kB With provenance Details for pyrisearch_tauso-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrisearch-tauso 0.1.0
File Interpreter ABI Platform Actions
pyrisearch_tauso-0.1.0-py3-none-any.whl Python 3 none any Details for pyrisearch_tauso-0.1.0-py3-none-any.whl

Total release size: 16.2 kB

Release files / pyrisearch_tauso-0.1.0.tar.gz

Download URL pyrisearch_tauso-0.1.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6b15b3178119bae3d35fd30be2c461f7cdfdaef2b24049c9aa9c02c2a2d807f
BLAKE2b-256 checksum
How to use checksums
4b399e0c65aad16e0eaa55fc8f954662a9cb00d979e273157464d075bebdb061
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 11, 2026.

Transparency log

Release files / pyrisearch_tauso-0.1.0-py3-none-any.whl

Download URL pyrisearch_tauso-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d370cef982e41ad5ca5f14dd0fc7e622cadd99c567b2941abba8bb5e3fbec93
BLAKE2b-256 checksum
How to use checksums
405cc9124f278e3cf90d4f4395d7544f657bf48332fcb9dacc12f99727303a81
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 11, 2026.

Transparency log

Security for pyrisearch-tauso 0.1.0

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 pyrisearch_tauso-0.1.0.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 Sep 11, 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