Other Functions#

These functions provide additional utilities for BandHiC matrices, including matrix comparison, bias computation, and TAD calling.

bandhic.matrix_equal(a, b)

Check if two band_hic_matrix objects are equal.

bandhic.assert_band_matrix_equal(a, b)

Assert that two band_hic_matrix objects are equal.

bandhic.compute_bin_bias(hic_coo[, verbose, ...])

Compute bias values for Hi-C contact matrices using the Knight-Ruiz normalization algorithm.

bandhic.call_tad(hic_matrix, resolution, ...)

Detect TADs from a Hi-C matrix using the TopDom algorithm.

bandhic.topdom(hic_matrix, bins, window_size)

Detect TADs using TopDom algorithm.

bandhic.apa(hic_path, resolution, loops_df)

Compute Aggregate Peak Analysis (APA) around a set of loop anchors.

bandhic.hiccups(hic_file, chroms, resolutions)

Run the HiCCUPS loop-calling algorithm on Hi-C data using the BandHiC data structure.

bandhic.load_norm_vector_from_hic(hic_file, ...)

Load a normalization vector from a .hic file for a given chromosome and resolution.

bandhic.load_norm_vector_from_cooler(...)

Load a normalization vector from a .cool or .mcool file for a given chromosome and resolution.

bandhic.scc(A, B[, max_k, min_n, method])

Stratified correlation coefficient (SCC) for Hi-C using BandHiC.