tatami_tiledb
tatami bindings for TileDB-backed matrices
|
This repository implements tatami bindings for TileDB-backed matrices, allowing random access without loading the entire dataset into memory. Any matrix stored as a 2-dimensional TileDB array (dense or sparse) can be represented as a tatami::Matrix
and consumed by tatami-compatible applications.
tatami_tiledb is a header-only library, so it can be easily used by just #include
ing the relevant source files:
Advanced users can fiddle with the options, in particular the size of the tile cache. For example, we could force the matrix to use no more than 200 MB of memory in the cache:
Check out the reference documentation for more details.
FetchContent
If you're using CMake, you just need to add something like this to your CMakeLists.txt
:
Then you can link to tatami_tiledb to make the headers available during compilation:
find_package()
You can install the library by cloning a suitable version of this repository and running the following commands:
Then you can use find_package()
as usual:
If you're not using CMake, the simple approach is to just copy the files - either directly or with Git submodules - and include their path during compilation with, e.g., GCC's -I
. This will also require the dependencies listed in extern/CMakeLists.txt
, namely the tatami_chunked library.
You'll also need to link to the TileDB library yourself (version 2.15 or higher). tatami_tiledb does not place any restrictions on the source of the TileDB library; in the simplest case, we just download the latest release, unpack it in some tiledb/
directory, and link to it as shown below. (Proper installation instructions for TileDB can be found in their documentation.)