bandhic.band_hic_matrix.unmask#
- band_hic_matrix.unmask(indices=None)[source]#
Remove mask entries for specified indices or clear all.
- Parameters:
indices (tuple of array-like or None) – Tuple (row_idx, col_idx) to unmask, or None to clear all.
- Raises:
Warning – If no mask exists when trying to remove.
- Return type:
None
Notes
If indices is None, this will clear all masks (both entry-level and row/column), equivalent to clear_mask().
Examples
>>> import bandhic as bh >>> mat = bh.band_hic_matrix(np.eye(3), diag_num=2) >>> mat.unmask(( [0],[0] )) >>> mat.unmask()