📖 Table of Contents
kProcessor is a C++ API with a handy Python interface that enables easy handling of sequence kmer content. kProcessor stores kmers with their associated metadata in a virtual data structure called kDataframe. By default, kDataFrame stores the kmers with their counts in the input dataset. However, kDataFrame supports adding multiple other columns to store more information about these kmers in different data types. Users can easily merge multiple kDataFrames or apply different set functions (e.g. union, intersect and difference) on a group of kDataFrames. Colored kDataFrame is another core virtual data structure in kProcessor that allows the indexing of the kmers in a multi-sequence reference input. It is composed of a kDataFrame that replaces the kmer count with a key (aka color). This key connects the kmer to all sequences associated with this kmer.
python -m pip install kProcessor
git clone https://github.com/dib-lab/kProcessor.git
cd kProcessor/
git submodule update --init --recursive
sudo apt-get install g++ swig cmake python3-dev zlib1g-dev libghc-bzlib-dev python3-distutils libboost-all-dev
Description | Option | Default |
---|---|---|
Build tests | BUILD_TESTS | OFF |
Build documentation | BUILD_DOCS | OFF |
Build everything! | BUILD_ALL | OFF |
# Run CMake configure
cmake -Bbuild
# Run make with parallel execution.
cmake --build build -j4 # -j4 = execute 4 recipes simultaneously.
cmake -Bbuild -DBUILD_ALL=1
cmake --build build -j4 # -j4 = execute 4 recipes simultaneously.
Build Docs Only
Output directory: build/doxygen/html
cmake -Bbuild -DBUILD_DOCS=1
cmake --build build --target GenerateDocs
Build Tests Only
cmake -Bbuild -DBUILD_TESTS=1
cmake --build build -j4
# Run tests
cd build/tests/kProcessorLibTests
./testKprocessorLib
Python bindings are generated using SWIG. It's recommended to install swig=4.0.2
using Conda.
You can build the python bindings by executing build_wrapper.sh
, or you can follow the next steps.
- First, you need to follow the instructions in the Build from source.
- While
pwd=kProcessor
run:python setup.py bdist_wheel
. - Install the generated wheel package using:
cd dist && python -m pip install kProcessor*.whl
.
Mostafa Shokrof | Mohamed Abuelanin | Tamer Manosur |
Licensed under BSD-3-Clause.