Skip to main content

Ultra-fast RNA 3D structure search via spatial-neighbor structural alphabets

Project description

RiboSeek

Ultra-fast RNA 3D structure search via spatial-neighbor structural alphabets.

RiboSeek encodes each RNA 3D structure as a string over a 20-letter structural alphabet whose features describe each nucleotide's spatial neighborhood (top-3 nearest non-sequential neighbors), then runs C-accelerated Needleman–Wunsch / Smith–Waterman alignment to retrieve similar structures from a database.

Full-database search against 16K RNA chains takes ~200 ms per query, vs ~46 h for US-align.

Installation

pip install riboseek

A C compiler is required (gcc/clang on Linux/macOS, MSVC on Windows). On most systems pip will compile the small C extension automatically.

Quickstart

from riboseek import Searcher

# Load the default 20-letter alphabet + bundled demo database
searcher = Searcher.from_pretrained()

# Encode an RNA structure from a PDB or mmCIF file
labels = searcher.encode("my_rna.pdb")
print(f"SA-20 sequence: {labels[:50]}...")

# Search the database for similar structures
hits = searcher.search("my_rna.pdb", top_n=10)
for h in hits:
    print(f"  {h['chain']:>10s}  combined={h['combined_score']:+.3f}")

Or use the CLI:

# Encode a single structure
riboseek encode my_rna.pdb

# Search against the bundled demo database
riboseek search my_rna.pdb --top-n 10

# Build a custom database from a directory of PDB / mmCIF files
riboseek build-db ./my_pdbs/ -o ./my_db/

# Search against your custom database
riboseek search my_rna.pdb --db ./my_db/ --top-n 20

Full 16K-chain database

The PyPI package ships with a ~50-chain demo subset so installs stay small. For the full 16,641-chain experimental RNA database used in the paper:

riboseek download-db

This fetches the full SA-20 encoded chain set (~10 MB compressed) from the GitHub release into ~/.cache/riboseek/. Subsequent riboseek search calls will use it automatically when --db default (the default) is set.

What this package does NOT include

This is a minimal release. It does not ship the research scripts behind the paper (feature-ablation studies, alternative discretisation methods such as VQ-VAE, learned prefilters, RhoFold+-predicted dark-family pipeline, figure-rendering code, etc.). Those live in the private research repository.

Citation

If you use RiboSeek in academic work, please cite the preprint:

Wang D, Jin J, Qiao J, Wei L, Wu S, Liu Q. Spatial-neighbour encoding enables fast RNA 3D structure search. bioRxiv 2026.04.19.719441 (2026). doi: 10.64898/2026.04.19.719441

License

MIT — see LICENSE.

Project details


Download files

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

Source Distribution

riboseek-0.1.0.tar.gz (42.9 kB view details)

Uploaded Source

File details

Details for the file riboseek-0.1.0.tar.gz.

File metadata

  • Download URL: riboseek-0.1.0.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for riboseek-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97666960b1a058bcd36cc98b6037d7caf08e504f57a5103d0ae003748db1f47d
MD5 eaf39677061f74035922019964610a30
BLAKE2b-256 a6a450cffa713b2be7eafa1876b7582c58e963e6af1288475ce964c7e76e4ecb

See more details on using hashes here.

Supported by

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