bandhic.load_norm_vector_from_cooler#

bandhic.load_norm_vector_from_cooler(cool_path, chrom, resolution, norm)[source]#

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

Parameters:
  • cool_path (str) – Path to the .cool or .mcool file.

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

  • 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.