Skip to main content

RhyDB

High-performance analytical database for sequence alignment data.

Check out rhydb.org to interactively try out this database engine on a few sample instances.

For information on how to build, test, and contribute to RhyDB, see Contributing.

Python Bindings

RhyDB provides Python bindings via Cython. The bindings wrap the core C++ Database and are installable by pip install rhydb.

See Contributing for build instructions.

Usage

from rhydb import Database

# Create a new database
db = Database()

# Or load from a saved state
db = Database("/path/to/saved/database")

# Create a table with a nucleotide sequence column, whose reference is taken
# from the built-in reference_genomes table
db.append_data_from_string(
    "reference_genomes", '{"name": "main", "type": "nucleotide", "sequence": "ACGT..."}'
)
db.query(
    "createTable(sequences, {id := string, country := string, main := nucleotideSequence(reference := main)}, primaryKey := id)"
)

# Append data from file
db.append_data_from_file("sequences", "/path/to/data.ndjson")

# Query data through the SaneQL front-end
table = db.query("sequences.filter(true)")

# Update and delete rows in place
db.query("update(sequences, set := {country := 'Switzerland'}, where := country = 'CH')")
db.query("delete(sequences, where := country.isNull())")

# Save database state
db.save_checkpoint("/path/to/save/directory")

Configuration Files

For RhyDB, there are three different configuration files:

  • DatabaseConfig described in file database_config.h
  • PreprocessingConfig used when started with preprocessing and described in file preprocessing_config.h. For details see rhydb preprocessing --help.
  • RuntimeConfig used when started with api and described in file runtime_config.h For details see rhydb api --help.

The database config contains the schema of the database and is always required when preprocessing data. The database config will be saved together with the output of the preprocessing and is therefore not required when starting RhyDB as an API.

An example configuration file can be seen in testBaseData/exampleDataset/database_config.yaml.

By default, the config files are expected to be YAML files in the current working directory in snake_case (database_config.yaml, preprocessing_config.yaml, runtime_config.yaml), but their location can be overridden using the options --database-config=X, --preprocessing-config=X, and --runtime-config=X.

Preprocessing and Runtime configurations contain default values for all fields and are thus only optional. Their parameters can also be provided as command-line arguments in snake_case and as environment variables prefixed with RHYDB_ in capital SNAKE_CASE. (e.g. RHYDB_INPUT_DIRECTORY).

The precendence is CLI argument > Environment Variable > Configuration File > Default Value

Run The Preprocessing

The preprocessing acts as a program that takes an input directory that contains the to-be-processed data and an output directory where the processed data will be stored. Both need to be mounted to the container.

RhyDB expects a preprocessing config that can be mounted to the default location /app/preprocessing_config.yaml.

Additionally, a database config and a ndjson file containing the data are required. They should typically be mounted in /preprocessing/input.

docker run \
  -v your/input/directory:/preprocessing/input \
  -v your/preprocessing/output:/preprocessing/output \
  -v your/preprocessing_config.yaml:/app/preprocessing_config.yaml \
  ghcr.io/rhyorg/rhydb preprocessing

Both config files can also be provided in custom locations:

rhydb preprocessing --preprocessing-config=./custom/preprocessing_config.yaml --database-config=./custom/database_config.yaml

The Docker image contains a default preprocessing config that sets defaults specific for running RhyDB in Docker. Apart from that, there are default values if neither user-provided nor default config specify fields. The user-provided preprocessing config can be used to overwrite the default values. For a full reference, see the help text.

Run docker container (api)

After preprocessing the data, the api can be started with the following command:

docker run \
  -p 8081:8081 \
  -v your/preprocessing/output:/data \
  ghcr.io/rhyorg/rhydb api

The directory where RhyDB expects the preprocessing output can be overwritten via rhydb api --data-directory=/custom/data/directory or in a corresponding configuration file.

Acknowledgments

Original genome indexing logic with roaring bitmaps by Prof. Neumann: https://db.in.tum.de/~neumann/gi/

Metadata

Release files for rhydb 0.17.5

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

Built distributions (wheels)

Table of built distributions (wheels) for rhydb 0.17.5
File Actions
rhydb-0.17.5-cp315-cp315-manylinux_2_35_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.35+ x86-64 Details for rhydb-0.17.5-cp315-cp315-manylinux_2_35_x86_64.whl
rhydb-0.17.5-cp315-cp315-manylinux_2_35_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.5-cp315-cp315-manylinux_2_35_aarch64.whl
rhydb-0.17.5-cp315-cp315-macosx_15_0_x86_64.whl CPython 3.15 CPython 3.15 macOS 15.0+ x86-64 Details for rhydb-0.17.5-cp315-cp315-macosx_15_0_x86_64.whl
rhydb-0.17.5-cp315-cp315-macosx_15_0_arm64.whl CPython 3.15 CPython 3.15 macOS 15.0+ ARM64 Details for rhydb-0.17.5-cp315-cp315-macosx_15_0_arm64.whl
rhydb-0.17.5-cp314-cp314-manylinux_2_35_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.35+ x86-64 Details for rhydb-0.17.5-cp314-cp314-manylinux_2_35_x86_64.whl
rhydb-0.17.5-cp314-cp314-manylinux_2_35_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.5-cp314-cp314-manylinux_2_35_aarch64.whl
rhydb-0.17.5-cp314-cp314-macosx_15_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 15.0+ x86-64 Details for rhydb-0.17.5-cp314-cp314-macosx_15_0_x86_64.whl
rhydb-0.17.5-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for rhydb-0.17.5-cp314-cp314-macosx_15_0_arm64.whl
rhydb-0.17.5-cp313-cp313-manylinux_2_35_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.35+ x86-64 Details for rhydb-0.17.5-cp313-cp313-manylinux_2_35_x86_64.whl
rhydb-0.17.5-cp313-cp313-manylinux_2_35_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.5-cp313-cp313-manylinux_2_35_aarch64.whl
rhydb-0.17.5-cp313-cp313-macosx_15_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 15.0+ x86-64 Details for rhydb-0.17.5-cp313-cp313-macosx_15_0_x86_64.whl
rhydb-0.17.5-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for rhydb-0.17.5-cp313-cp313-macosx_15_0_arm64.whl
rhydb-0.17.5-cp312-cp312-manylinux_2_35_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.35+ x86-64 Details for rhydb-0.17.5-cp312-cp312-manylinux_2_35_x86_64.whl
rhydb-0.17.5-cp312-cp312-manylinux_2_35_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.5-cp312-cp312-manylinux_2_35_aarch64.whl
rhydb-0.17.5-cp312-cp312-macosx_15_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 15.0+ x86-64 Details for rhydb-0.17.5-cp312-cp312-macosx_15_0_x86_64.whl
rhydb-0.17.5-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for rhydb-0.17.5-cp312-cp312-macosx_15_0_arm64.whl
rhydb-0.17.5-cp311-cp311-manylinux_2_35_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.35+ x86-64 Details for rhydb-0.17.5-cp311-cp311-manylinux_2_35_x86_64.whl
rhydb-0.17.5-cp311-cp311-manylinux_2_35_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.5-cp311-cp311-manylinux_2_35_aarch64.whl
rhydb-0.17.5-cp311-cp311-macosx_15_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 15.0+ x86-64 Details for rhydb-0.17.5-cp311-cp311-macosx_15_0_x86_64.whl
rhydb-0.17.5-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for rhydb-0.17.5-cp311-cp311-macosx_15_0_arm64.whl

Total release size: 188.6 MB

Release files / rhydb-0.17.5-cp315-cp315-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.5-cp315-cp315-manylinux_2_35_x86_64.whl
Size 11.3 MB
Tags CPython 3.15 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
5f9bac32a7c330081b6ad2955307f61945a7b0fd635ba0a3396e25019c484557
BLAKE2b-256 checksum
How to use checksums
c4bdbfdfb06277307cd3948efdcb3e13a2218dd70b852ee2bf81ffdf90d838c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp315-cp315-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.5-cp315-cp315-manylinux_2_35_aarch64.whl
Size 10.0 MB
Tags CPython 3.15 Linux glibc 2.35+ ARM64
SHA-256 checksum
How to use checksums
932da99e36fbc91c4900925c0c1b140547997453e4b006e7ee8d8b54b26402ee
BLAKE2b-256 checksum
How to use checksums
117a6906234deac8e12fa024d3d69d863492109f29002e6e0cc1a1ba41e877f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp315-cp315-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.5-cp315-cp315-macosx_15_0_x86_64.whl
Size 8.8 MB
Tags CPython 3.15 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
fc9a1e0ac22ac6da0a144c51ebb9bbbd36d50208b1829357d9e27be49a923607
BLAKE2b-256 checksum
How to use checksums
4f779b2d6812102c8a8f32be541e09520cbcda826f01915c30493612e933e819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp315-cp315-macosx_15_0_arm64.whl

Download URL rhydb-0.17.5-cp315-cp315-macosx_15_0_arm64.whl
Size 7.6 MB
Tags CPython 3.15 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
eb0a9018c0a8a074c9c1863eb14898717ba79c0906fa4da9967a0e58412894b5
BLAKE2b-256 checksum
How to use checksums
cd8eb0e42f04394a9dc9b9dcf3dc4793c3a68bfd34a60f6dae469f406b23b4a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp314-cp314-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.5-cp314-cp314-manylinux_2_35_x86_64.whl
Size 11.3 MB
Tags CPython 3.14 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
6ad0e48476656b59a72322ab8f20bba288eaf9ab234a10e398b90bbe1cb95c6e
BLAKE2b-256 checksum
How to use checksums
9cd4ff69d0ad2352f96e0603da67672af41dad7e502c7268f791d5d8771210c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp314-cp314-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.5-cp314-cp314-manylinux_2_35_aarch64.whl
Size 10.0 MB
Tags CPython 3.14 Linux glibc 2.35+ ARM64
SHA-256 checksum
How to use checksums
1abdb77e9effed7cf656c8d69f711db38175ca192055662ce20dd22036409cb0
BLAKE2b-256 checksum
How to use checksums
28f6c942acfcabe16675f519b8e046bff65d1d6d65a8d69d846f28b92562da93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp314-cp314-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.5-cp314-cp314-macosx_15_0_x86_64.whl
Size 8.8 MB
Tags CPython 3.14 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
ed39481afeeab00457d8a647b7f7b66b44e8f5c42e02d56cc8034e416b72371a
BLAKE2b-256 checksum
How to use checksums
c5df7b15b089e251015d53baf456e5e7ba346aeda7826ec30b47e2ebfa22dc1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp314-cp314-macosx_15_0_arm64.whl

Download URL rhydb-0.17.5-cp314-cp314-macosx_15_0_arm64.whl
Size 7.6 MB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
fbf6c8b01873e22f7c02e4c45ce813225aca51b315f15a64716911b3d3edff12
BLAKE2b-256 checksum
How to use checksums
80514cad6394e813524a150a9f6b1f7befe1f52200fc35aaf2bc2cf6203a69e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp313-cp313-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.5-cp313-cp313-manylinux_2_35_x86_64.whl
Size 11.3 MB
Tags CPython 3.13 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
4f12dc5e1aac10ec85c4eef3ab30e994cab9a66df19eac26ba4e11619106b9b1
BLAKE2b-256 checksum
How to use checksums
608c48275e6159478fdb5c7a3673ddce080c32176deb14bbbad29d5f2918ee21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp313-cp313-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.5-cp313-cp313-manylinux_2_35_aarch64.whl
Size 10.0 MB
Tags CPython 3.13 Linux glibc 2.35+ ARM64
SHA-256 checksum
How to use checksums
20b1358441935ec00d4e729ad70a90e3c22d58467668534f88986ec79547bbcc
BLAKE2b-256 checksum
How to use checksums
74bf0148bd3ac388beb8cf7554c45a4f665aedf2bc60d5ad54fb38350150d94a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp313-cp313-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.5-cp313-cp313-macosx_15_0_x86_64.whl
Size 8.8 MB
Tags CPython 3.13 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
0b3e9686a1da4f3fbbb5e080386ef3d1fd78d27ae7378643009d8e6e6d55a8c6
BLAKE2b-256 checksum
How to use checksums
ff17df216cc6c4d68893be6290cd3e38e9bfc7be6250585cc22dbb3fd7e15100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp313-cp313-macosx_15_0_arm64.whl

Download URL rhydb-0.17.5-cp313-cp313-macosx_15_0_arm64.whl
Size 7.6 MB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
1606c270af114d3eb22dbf4f7cfde8c8083a8d0e6c26c80bfb3f5e29777552a8
BLAKE2b-256 checksum
How to use checksums
d7c64dc49d337413aaeb3ee228d30ed88b167ecaed3c604daf22b38fc252c0d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp312-cp312-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.5-cp312-cp312-manylinux_2_35_x86_64.whl
Size 11.3 MB
Tags CPython 3.12 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
028913fbac5eea1eafc3bc58244a14c156272de0703f265e03285588be23cc8d
BLAKE2b-256 checksum
How to use checksums
2c5a9fe323f13f8c3691b63e7c7bdcde690443db064647e4aa374fd8e540c2ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp312-cp312-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.5-cp312-cp312-manylinux_2_35_aarch64.whl
Size 10.0 MB
Tags CPython 3.12 Linux glibc 2.35+ ARM64
SHA-256 checksum
How to use checksums
cf0b68e3ad536c115380133fa290df08faf13ef955d8bf008154b2fd6a5fe3ae
BLAKE2b-256 checksum
How to use checksums
bdbf665c7c45ab027007e5df4b3d19997a2924a77fd0e11e707a2b0f671e3f2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp312-cp312-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.5-cp312-cp312-macosx_15_0_x86_64.whl
Size 8.8 MB
Tags CPython 3.12 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
a4c1c4651c40e08ac28b39690747bbbe3c6254ba5cbbc8cd0acf3a2cc335ab29
BLAKE2b-256 checksum
How to use checksums
6d57d31e6d2ec523201581841bbbfe5543a76d4df00a32d936b2adc831a13479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp312-cp312-macosx_15_0_arm64.whl

Download URL rhydb-0.17.5-cp312-cp312-macosx_15_0_arm64.whl
Size 7.6 MB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
60d60f376303d381fae1d5d68ef36388b91c35b74a74fd2cb81d0127710e1b20
BLAKE2b-256 checksum
How to use checksums
ff0c07f0c32363246cde76c3c02ac48930e1bae713d9d503a6ecdb031f405d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp311-cp311-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.5-cp311-cp311-manylinux_2_35_x86_64.whl
Size 11.3 MB
Tags CPython 3.11 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
2fc8cb32547c8865a37b3babd3cd81f848e1a867f5c0e9bf26251620b8c4175c
BLAKE2b-256 checksum
How to use checksums
936f7ada49ad81745dc9f4ff45ef78100a67c0784ad7ddafec7658ed13ba1f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp311-cp311-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.5-cp311-cp311-manylinux_2_35_aarch64.whl
Size 10.0 MB
Tags CPython 3.11 Linux glibc 2.35+ ARM64
SHA-256 checksum
How to use checksums
c5c490c6bc96e6f6c4610ae05b6e32d5b6ac1a6871a25dad36bd075c726a6bfc
BLAKE2b-256 checksum
How to use checksums
75dbf5f117dea988bbe65720c7adcc4e772098a8e88f3077867d3f76442d30e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp311-cp311-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.5-cp311-cp311-macosx_15_0_x86_64.whl
Size 8.8 MB
Tags CPython 3.11 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
a58f3015f29f5ca34dc7c4d4a7d64bda6b85b8632002208f54e852488d3373d5
BLAKE2b-256 checksum
How to use checksums
d9767e5de8657cb24dc0a7631b867c5b9b7ce8d30342c6f3a954cf35933c4156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / rhydb-0.17.5-cp311-cp311-macosx_15_0_arm64.whl

Download URL rhydb-0.17.5-cp311-cp311-macosx_15_0_arm64.whl
Size 7.6 MB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
736372f33b84e1ce39917b1b21de2965a64d80b55cc4da4ef458715277242860
BLAKE2b-256 checksum
How to use checksums
82b61ba09cfd70f11b21c03789782148acc6d0a6399f8f5b2d83b45ad1144ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for rhydb 0.17.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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