Repository navigation
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,chicChicagoScoresandchicChicagoSignificantInteractionsscore capture Hi-C interactions with the CHiCAGO method, from cool, h5 or.hicmatrices or from CHiCAGO.chinputfiles.chicChicagoPlotViewpointplots viewpoints as scatter plots or arcs and writes the interactions as a pyGenomeTracks links file. See the CHiCAGO tutorial. hicDifferentialAnalysistests TADs, loops and A/B compartments for differences between conditions with replicates, using a negative binomial model.hicDetectStripesdetects architectural stripes with the method of Stripenn (Yoon et al. 2022) and gives the same stripes, p-values and stripiness scores as Stripenn.hicArrowheadcalls contact domains with the Arrowhead algorithm of Juicer tools.hicMatrixQCwrites a quality-control report for finished cool and mcool matrices.hicBuildMatrixandhicBuildMatrixMicroCstore their QC statistics in the cool metadata (keyhicexplorer_qc), which the report reads back.
New options
hicConvertFormatreads.hicfiles of versions 6 to 9 and writes.hicfiles of versions 8 and 9 (--outputFormat hic). It also reads CHiCAGO.chinputfiles (--inputFormat chinputwith--rmap).hicBuildMatrixreads deduplicated read pairs in the 4DN.pairsformat (--pairsFile).hicFindTADscalls nested domains (--nestedMinDepth,--nestedMaxDepth,--nestedStep) and can keep only boundaries with divergent CTCF motifs (--ctcfFile).hicCorrelate --methodcomputes the reproducibility measures SCC (HiCRep), GenomeDISCO, HiC-Spector, QuASAR-Rep and ENT3C, with the default parameters of their reference implementations.hicPlotMatrix --matrix2draws two matrices as the upper and lower triangle of one heatmap.hicPCA --eigenSolver lanczoscomputes the eigenvectors of large matrices with less time and memory.hicDifferentialTADandchicSignificantInteractionsaccept--correctForMultipleTesting;hicDifferentialTADaccepts--sharedMask.hicCompartmentalization --noPlotwrites the numeric results without the figure.hicBuildMatrixand 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
hicTADClassifierandhicTrainTADClassifier.hicPlotTADs, which only called pyGenomeTracks. UsepyGenomeTracksdirectly 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 ofhicTransformand the eigenvectors ofhicPCA --method lieberman.utilities.compute_zscorenow subtracts the expected value; in 3.7.6 the z-scores did not depend on the data. hicDetectLoopscentres 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.hicFindTADscomputes 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;
--keepSelfCirclesis 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);
--transCutoffand--inflationCutoffnow take effect.
hicDifferentialTAD,hicInterIntraTADcut the inter-TAD blocks from the correct neighbouring bins; h5 and cool inputs now agree.hicMergeMatrixBinskeeps full chromosome lengths and all counts (#787, #906).hicSumMatriceskeeps every pixel of every input, so the sum of the result equals the sum of the inputs (#814).hicAdjustMatrix:--regionsincludes the last bin of a chromosome;--action removeremoves only the given regions;--maskBadRegionsreads its BED file;- an empty selection or an unknown chromosome stops with exit status 1 (#934).
hicConvertFormat:hicMergeLoopsmerges inter-chromosomal loops on the correct chromosome and keeps one copy of a loop repeated across inputs.- h5 correction factors are stored in
/correction_factorsand follow their bins. Tools whose outputs are not the corrected counts no longer carry the input's factors.
Further fixes: