Installation¶
conda¶
conda install -c conda-forge -c bioconda hicexplorer
The package contains the command-line tools and the Python API. Every tool is started with its own
name (hicBuildMatrix, hicFindTADs, and so on).
pip¶
pip install hicexplorer
The wheels contain the tools and the libraries they need for Linux (x86_64 and arm64) and macOS (arm64).
Requirements for building from source¶
- A C++20 compiler and CMake 3.24 or newer, and Ninja or Make.
- Native dependencies, most easily obtained as a conda environment used as a plain prefix (not
activated, just pointed at with
-DCMAKE_PREFIX_PATH): HDF5, blosc, zlib, htslib, BLAS/LAPACK, Eigen, Spectra, Boost.Math headers, libBigWig, pybind11 and doctest. The packages and versions are listed incpp/BUILDING.md. - The cool/mcool and
.hicfile libraries and the.hicconversion ofhicConvertFormatare part of the source tree (cpp/core/io); nothing else is fetched when CMake configures the build. - The plotting tools draw figures with Python. The Python environment needs matplotlib. The environment is selected with the
HICX_PLOT_PYTHONenvironment variable and defaults to the Python that runs the tool. hicMergeDomainsadditionally needs the Graphvizdotbinary onPATHat run time, to render the TAD hierarchy plots.
Build from source¶
git clone https://github.com/deeptools/HiCExplorer.git
cd HiCExplorer
cmake -B cpp/build -S cpp \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/path/to/conda/env/used/as/prefix
cmake --build cpp/build -j
-DCMAKE_PREFIX_PATHshould point at a conda environment (or any prefix) providing the packages ofcpp/BUILDING.md; it is used as a plain library search path, not activated.
Each tool builds as its own executable under cpp/build/tools/, for example cpp/build/tools/hicBuildMatrix,
cpp/build/tools/hicFindTADs, and so on. Add cpp/build/tools to PATH, or invoke the binaries by their
full path. To install the Python package together with the executables, run pip install . in the
repository root.
Verify the installation¶
cpp/build/tools/hicInfo --version
Every tool accepts --help (a few require their required arguments to be present before --help is
honored; see the individual tool's page if --help alone reports missing arguments instead of usage).
Running the test suites¶
The C++ unit tests run with ctest in the build directory, and the Python tests with pytest
hicexplorer/test/general. The equivalence suite that checks every tool against HiCExplorer 3.7.6 is
cpp/scripts/equiv.py. cpp/scripts/ci_local.py runs the jobs of the continuous integration on the
local machine. These are aimed at contributors.