Portable Multithreaded Burrows-Wheeler Transform + Move To Front + Run Length Encoding Compressor/Decompressor
After git clone or downloaded and extracted zip file (assuming CMake is installed):
cd src
cmake -B build
cmake --build build
sudo cmake --install build --stripInstall part is optional, but if it's done, build dir can be deleted.
When using multi-config generators such as "Xcode" or "Visual Studio *" you need to provide an extra config argument to the build and install commands:
cmake --build build --config Release
sudo cmake --install build --strip --config ReleaseImportant note: When building a shared library on Windows, without install part, shared lib (*.dll) needs to be copied to the same dir as *.exe file after build process.
List of possible options you can pass to the CMake generator command:
| Option | Default | Description |
|---|---|---|
USE_ASAN |
OFF |
Pass ON to build with ASAN runtime checks |
BWT_NO_MTF |
OFF |
Pass ON to build without MTF pass |
BUILD_BWT_LIBRARY |
ON |
Pass OFF to build a main program only (without library part) |
BUILD_SHARED_LIBS |
ON |
Pass OFF to build a static library instead of a shared library |
So, for example, if you want to build with ASAN runtime checks you can simply pass that flag to the CMake generator command:
cmake -B build -DUSE_ASAN=ONpbwt [OPTIONS] [<input_file>]For detailed help run pbwt -h.