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.6

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.6
File Actions
rhydb-0.17.6-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.6-cp315-cp315-manylinux_2_35_x86_64.whl
rhydb-0.17.6-cp315-cp315-manylinux_2_35_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.6-cp315-cp315-manylinux_2_35_aarch64.whl
rhydb-0.17.6-cp315-cp315-macosx_15_0_x86_64.whl CPython 3.15 CPython 3.15 macOS 15.0+ x86-64 Details for rhydb-0.17.6-cp315-cp315-macosx_15_0_x86_64.whl
rhydb-0.17.6-cp315-cp315-macosx_15_0_arm64.whl CPython 3.15 CPython 3.15 macOS 15.0+ ARM64 Details for rhydb-0.17.6-cp315-cp315-macosx_15_0_arm64.whl
rhydb-0.17.6-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.6-cp314-cp314-manylinux_2_35_x86_64.whl
rhydb-0.17.6-cp314-cp314-manylinux_2_35_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.6-cp314-cp314-manylinux_2_35_aarch64.whl
rhydb-0.17.6-cp314-cp314-macosx_15_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 15.0+ x86-64 Details for rhydb-0.17.6-cp314-cp314-macosx_15_0_x86_64.whl
rhydb-0.17.6-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for rhydb-0.17.6-cp314-cp314-macosx_15_0_arm64.whl
rhydb-0.17.6-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.6-cp313-cp313-manylinux_2_35_x86_64.whl
rhydb-0.17.6-cp313-cp313-manylinux_2_35_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.6-cp313-cp313-manylinux_2_35_aarch64.whl
rhydb-0.17.6-cp313-cp313-macosx_15_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 15.0+ x86-64 Details for rhydb-0.17.6-cp313-cp313-macosx_15_0_x86_64.whl
rhydb-0.17.6-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for rhydb-0.17.6-cp313-cp313-macosx_15_0_arm64.whl
rhydb-0.17.6-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.6-cp312-cp312-manylinux_2_35_x86_64.whl
rhydb-0.17.6-cp312-cp312-manylinux_2_35_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.6-cp312-cp312-manylinux_2_35_aarch64.whl
rhydb-0.17.6-cp312-cp312-macosx_15_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 15.0+ x86-64 Details for rhydb-0.17.6-cp312-cp312-macosx_15_0_x86_64.whl
rhydb-0.17.6-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for rhydb-0.17.6-cp312-cp312-macosx_15_0_arm64.whl
rhydb-0.17.6-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.6-cp311-cp311-manylinux_2_35_x86_64.whl
rhydb-0.17.6-cp311-cp311-manylinux_2_35_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.35+ ARM64 Details for rhydb-0.17.6-cp311-cp311-manylinux_2_35_aarch64.whl
rhydb-0.17.6-cp311-cp311-macosx_15_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 15.0+ x86-64 Details for rhydb-0.17.6-cp311-cp311-macosx_15_0_x86_64.whl
rhydb-0.17.6-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for rhydb-0.17.6-cp311-cp311-macosx_15_0_arm64.whl

Total release size: 189.0 MB

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

Download URL rhydb-0.17.6-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
cfeec8a618517e454f699be1573cd8c2c1b8f564dbb6daed1fa7f4e5bc66cfa4
BLAKE2b-256 checksum
How to use checksums
512690050e4bdd303653fa60b58e5c07e3c981b56b6cffc7cc209e931b29c789
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.6-cp315-cp315-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.6-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
b3503820a1b209ffd37583fd68443f6f5cdd45bb8f03baa8bb9a63bb681c1cbe
BLAKE2b-256 checksum
How to use checksums
bed8698168bead2d02c1aff4d204d45836adc7731794b3b18ad4bb61936c89b9
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.6-cp315-cp315-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.6-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
1c196941c29c0da0d00593e907f3d7051cb9ae8ce63f846a5e9a3a1c2b8849c8
BLAKE2b-256 checksum
How to use checksums
11e216d98c0a8d87b9beb274f118a5a1f14daef212793b19ec9c52ea8ed01652
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.6-cp315-cp315-macosx_15_0_arm64.whl

Download URL rhydb-0.17.6-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
06ab735bb55ee3019de07526354fcee87f0fa6677f3d2c9a33d605951ba49e97
BLAKE2b-256 checksum
How to use checksums
c9651e19536ec64163e9a330a3fd996bfe41710146f2716193c765b88bfa298f
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.6-cp314-cp314-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.6-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
ec51480b334212569a5dfb94188bfc0ae25b49e4f6ed0418b9e51b42efe41c2f
BLAKE2b-256 checksum
How to use checksums
aec6d5ef203f9bb67a11f0f32c47fb1601b497e62c25a0e22ccf9cc81a9734dc
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.6-cp314-cp314-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.6-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
9cb74435c5189e882cda231800801523a452608eafec9d9d849cbb079cdd6bb0
BLAKE2b-256 checksum
How to use checksums
a724d208d794a83ce4834f145c548ad671f48e0d1739b6ced3606c89bc91b95b
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.6-cp314-cp314-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.6-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
53c383cf3298032ede747d03d304c98b13d849b1da6c8ccf7c176af370a741fe
BLAKE2b-256 checksum
How to use checksums
7423cf8cbd6dcbb17953178dad4ee8427c16fae97488b2a363600f74c281b766
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.6-cp314-cp314-macosx_15_0_arm64.whl

Download URL rhydb-0.17.6-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
4ca0aa4aad5ecae0752a89aea624393ec358a2285988b6be5b066a65d41e4f8f
BLAKE2b-256 checksum
How to use checksums
22ad184e0ec54a16d9eddd1668f38dc1749cd039a37e7bfbac9244adefb0a053
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.6-cp313-cp313-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.6-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
ece974dc44518e7a15b59ac0eac8ce3f3d940c042df77fe05108582c45758fe5
BLAKE2b-256 checksum
How to use checksums
1749257489d1ddb1d16770ed1597d001ecc19876b4acc96719472323bc36dc35
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.6-cp313-cp313-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.6-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
2853610eaf30737f4b74ee27f2042f1f88a29e8d78432e360cc95684aa701197
BLAKE2b-256 checksum
How to use checksums
ffe0a8977e70a1549afe96887865b6c70b846ab87a354b621eba25c0ce95231f
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.6-cp313-cp313-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.6-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
5c6405e8b8b068925d47a079c4c945404d3b903b6a7f1683484f3e94766274b6
BLAKE2b-256 checksum
How to use checksums
96f9e3b5c60efaeeb23fade4d37a5c3c90324c7fff5d6c0b38571615a5f22996
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.6-cp313-cp313-macosx_15_0_arm64.whl

Download URL rhydb-0.17.6-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
2d72d2448dfe8de6628e0b81065969a12da8d89018d1d0db6e4664b7ba82e91e
BLAKE2b-256 checksum
How to use checksums
4bef2ba30281ad7a96b56ad7ab9d7a3f3c00a18c2928d0f05473b776252150be
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.6-cp312-cp312-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.6-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
112a0041950194980a29f02c5fa5f277093e7c33b92d1b5212f6c250902bebc8
BLAKE2b-256 checksum
How to use checksums
2e9497ec47af689741c3fd0e99b7cfdc8b7ab2ee3d5aa5f0e6bc013204e77a82
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.6-cp312-cp312-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.6-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
0873437e910979e154b23f4aed9788872bbe378f84182cb235fffc120975041c
BLAKE2b-256 checksum
How to use checksums
70d05fda267781e80d4e425f5a13b5e339dd2e57c10d8e4e35cac9fcac242f15
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.6-cp312-cp312-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.6-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
fc60030044799c63622fee652ead03182dc95396b6f50448ef1f71339dda4800
BLAKE2b-256 checksum
How to use checksums
1322c6bfd8451c3b115a57f0be88bfa1eca81c23edb4301b85dec5022a776ecf
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.6-cp312-cp312-macosx_15_0_arm64.whl

Download URL rhydb-0.17.6-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
83da69cfc99e076a228ff58cd9370a26d79306a980202665c67fd78f5f00c2a6
BLAKE2b-256 checksum
How to use checksums
2600cc7a1d96b88c24e0651e49adfa0bb390fe6bc8f9f1cdc7fdf64febb44660
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.6-cp311-cp311-manylinux_2_35_x86_64.whl

Download URL rhydb-0.17.6-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
5942e939b231463c827b8fd5143ccdafe014ba0238d895950c7e5477222f3b52
BLAKE2b-256 checksum
How to use checksums
2b174ff0fcdc64535aab43fa8de8d8872caa22e82383eae0f9ad74f40276f894
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.6-cp311-cp311-manylinux_2_35_aarch64.whl

Download URL rhydb-0.17.6-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
39cafa8bd7023de4d3ccde8d3d6ccd229cdc2e63bdafb82f33b32896d5ba8833
BLAKE2b-256 checksum
How to use checksums
fa9feabb9c45f791caa32b7c43e6a03b5e61eb1094348139d9e434ed737a5e1b
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.6-cp311-cp311-macosx_15_0_x86_64.whl

Download URL rhydb-0.17.6-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
4b2f4672d0e808ed175660c2487926a4415bf9500a15d267822f0f1943986196
BLAKE2b-256 checksum
How to use checksums
bb84a22efd758fe1a700d81783ed23cdfc6755181a39ad77bf5a645a1f488434
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.6-cp311-cp311-macosx_15_0_arm64.whl

Download URL rhydb-0.17.6-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
89d5c38e002d824efe87e30f7ef07981e41585e8b0ccebaa9acb0dcad71e0ceb
BLAKE2b-256 checksum
How to use checksums
d6226b6e50987029552761a012b56b7d4049f27f5c5f454efe06f81b378c4267
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.6

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