bandhic.band_hic_matrix.add_mask_row_col#

band_hic_matrix.add_mask_row_col(mask_row_col)[source]#

Mask entire rows and corresponding columns.

Parameters:

mask_row_col (array-like of int or bool) – If boolean array of shape (bin_num,), True entries indicate rows/columns to mask. If integer array or sequence, treated as indices of rows/columns to mask.

Raises:

ValueError – If integer indices are out of bounds.

Return type:

None

Examples

>>> import bandhic as bh
>>> mask = np.array([True, False, False])
>>> mat = bh.band_hic_matrix(np.eye(3), diag_num=2)
>>> mat.add_mask_row_col(mask)