Skip to content

November 2026 release

Latest

Choose a tag to compare

@joachimwolff joachimwolff released this 10 Nov 18:12
d8ed710

HiCExplorer 4.0.0

HiCExplorer 4.0 is a new major version. Every tool of release 3.7.6 keeps its name, command line, file formats and outputs, checked tool by tool against 3.7.6, and the Python modules keep their API. The tools now run on a new compiled core. On real data the analysis tools run three to eight times faster than 3.7.6 with two to four times less memory, hicBuildMatrix needs about a twelfth of the CPU time, and most tools run multithreaded with --threads.

Task 3.7.6 4.0 Speedup
hicBuildMatrix, 92.7M read pairs, 10 kb, CPU time 2,245 s 197 s 11.4x
hicDetectLoops, GM12878 chr1, 10 kb 20.0 s 6.3 s 3.2x
hicFindTADs, GM12878 chr1, 10 kb 32.3 s 4.0 s 8.2x
hicPCA, GM12878 chr1, 100 kb 11.1 s 4.0 s 2.8x

Memory, thread scaling, the CHiCAGO tools and the comparison with Stripenn are on the benchmarks page.

Installation

conda install -c conda-forge -c bioconda hicexplorer=4.0.0

HiCExplorer 4.0 requires Python 3.10 or newer and is tested on Linux (x86_64, aarch64) and macOS (Apple Silicon) with Python 3.10, 3.11 and 3.12. Galaxy wrappers for 4.0 are submitted to the Galaxy tool shed.

New tools

  • CHiCAGO for capture Hi-C: chicChicagoBackgroundModel, chicChicagoScores and chicChicagoSignificantInteractions score capture Hi-C interactions with the CHiCAGO method, from cool, h5 or .hic matrices or from CHiCAGO .chinput files. chicChicagoPlotViewpoint plots viewpoints as scatter plots or arcs and writes the interactions as a pyGenomeTracks links file. See the CHiCAGO tutorial.
  • hicDifferentialAnalysis tests TADs, loops and A/B compartments for differences between conditions with replicates, using a negative binomial model.
  • hicDetectStripes detects architectural stripes with the method of Stripenn (Yoon et al. 2022) and gives the same stripes, p-values and stripiness scores as Stripenn.
  • hicArrowhead calls contact domains with the Arrowhead algorithm of Juicer tools.
  • hicMatrixQC writes a quality-control report for finished cool and mcool matrices. hicBuildMatrix and hicBuildMatrixMicroC store their QC statistics in the cool metadata (key hicexplorer_qc), which the report reads back.

New options

  • hicConvertFormat reads .hic files of versions 6 to 9 and writes .hic files of versions 8 and 9 (--outputFormat hic). It also reads CHiCAGO .chinput files (--inputFormat chinput with --rmap).
  • hicBuildMatrix reads deduplicated read pairs in the 4DN .pairs format (--pairsFile).
  • hicFindTADs calls nested domains (--nestedMinDepth, --nestedMaxDepth, --nestedStep) and can keep only boundaries with divergent CTCF motifs (--ctcfFile).
  • hicCorrelate --method computes the reproducibility measures SCC (HiCRep), GenomeDISCO, HiC-Spector, QuASAR-Rep and ENT3C, with the default parameters of their reference implementations.
  • hicPlotMatrix --matrix2 draws two matrices as the upper and lower triangle of one heatmap.
  • hicPCA --eigenSolver lanczos computes the eigenvectors of large matrices with less time and memory.
  • hicDifferentialTAD and chicSignificantInteractions accept --correctForMultipleTesting; hicDifferentialTAD accepts --sharedMask.
  • hicCompartmentalization --noPlot writes the numeric results without the figure.
  • hicBuildMatrix and the CHiCAGO tools give the same output for every number of threads.
  • A cool or h5 file whose sparse structure points outside the matrix is rejected with an error before any tool uses it.

Removed

  • hicTADClassifier and hicTrainTADClassifier.
  • hicPlotTADs, which only called pyGenomeTracks. Use pyGenomeTracks directly with the same track files:
    pyGenomeTracks --tracks tracks.ini --region chr1:1000000-4000000 -o image.png

Results that differ from 3.7.6

The following corrections change outputs where 3.7.6 was wrong. Results computed with 3.7.6 by these tools should be recomputed.

  • Expected values and obs/exp: the expected contacts at distance d are the sum divided by n - d (3.7.6: n + 1 - d), each pixel is divided by the expected value of its own distance (3.7.6: of ceil(d / 2)), and obs/exp of an integer matrix is no longer truncated. This changes the loops of hicDetectLoops, the obs/exp matrices of hicTransform and the eigenvectors of hicPCA --method lieberman. utilities.compute_zscore now subtracts the expected value; in 3.7.6 the z-scores did not depend on the data.
  • hicDetectLoops centres the window of the peak test on the candidate itself; 3.7.6 used a wrong position when the candidate's value occurred twice in its window.
  • hicFindTADs computes the delta of a boundary candidate without the minimum itself; 3.7.6 included it, so deltas were too small and fewer boundaries passed --delta.
  • hicBuildMatrix, hicBuildMatrixMicroC, hicQuickQC:
    • inter-chromosomal pairs with exchanged mate positions are no longer counted as duplicates (#957);
    • "One mate not unique" requires both mates to have mapping quality 0;
    • --keepSelfCircles is honoured;
    • the per-bin coverage counts each mate in its own bin;
    • SA tags are parsed per entry, so reference names containing ; no longer break the run (#387).
  • hicCorrectMatrix:
    • ICE on a cool matrix writes raw counts plus weights, as KR does; 3.7.6 stored corrected counts with weights, so cooler applied the correction twice (#586);
    • --transCutoff and --inflationCutoff now take effect.
  • hicDifferentialTAD, hicInterIntraTAD cut the inter-TAD blocks from the correct neighbouring bins; h5 and cool inputs now agree.
  • hicMergeMatrixBins keeps full chromosome lengths and all counts (#787, #906).
  • hicSumMatrices keeps every pixel of every input, so the sum of the result equals the sum of the inputs (#814).
  • hicAdjustMatrix:
    • --regions includes the last bin of a chromosome;
    • --action remove removes only the given regions;
    • --maskBadRegions reads its BED file;
    • an empty selection or an unknown chromosome stops with exit status 1 (#934).
  • hicConvertFormat:
    • negative values (for example after hicTransform --method pearson) are kept in ginteractions, homer and hicpro output (#584);
    • 2D-text input writes one pixel per line (#808);
    • the mcool root is marked as an mcool, so cooler no longer reports it as corrupt (#952).
  • hicMergeLoops merges inter-chromosomal loops on the correct chromosome and keeps one copy of a loop repeated across inputs.
  • h5 correction factors are stored in /correction_factors and follow their bins. Tools whose outputs are not the corrected counts no longer carry the input's factors.

Further fixes:

  • hicPCA runs without --whichEigenvectors (#867, #883).
  • hicMergeDomains accepts domain files in any order (#790, #803, #839).
  • chicViewpoint names mcool groups after the file (#828).
  • hicPlotDistVsCounts stops with a message when no curve can be drawn (#836).