bandhic.load_norm_vector_from_hic#

bandhic.load_norm_vector_from_hic(hic_file, chrom, resolution, norm)[source]#

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

Parameters:
  • hic_file (str) – Path to the .hic file.

  • chrom (str) – Chromosome name, e.g., ‘chr1’ or ‘1’.

  • resolution (int) – Bin size in base pairs.

  • norm (str) – Normalization method, e.g., ‘KR’, ‘VC’, etc.

Returns:

Normalization vector for the specified chromosome and resolution.

Return type:

np.ndarray

Raises:

RuntimeError – If the normalization vector cannot be found for the specified parameters.