bandhic.band_hic_matrix.add_mask#

band_hic_matrix.add_mask(row_idx, col_idx)[source]#

Add mask entries for specified indices.

Parameters:
  • row_idx (array-like of int) – Row indices to mask.

  • col_idx (array-like of int) – Column indices to mask.

Raises:

ValueError – If row_idx and col_idx have different shapes.

Return type:

None

Examples

>>> import bandhic as bh
>>> import numpy as np
>>> mat = bh.band_hic_matrix(np.eye(4), diag_num=2)
>>> mat.add_mask([0, 1], [1, 2])