bandhic.band_hic_matrix.filled#
- band_hic_matrix.filled(fill_value=None, copy=True)[source]#
Fill masked entries in data with default value.
- Parameters:
fill_value (scalar) – Value to assign to masked entries.
copy (bool)
- Raises:
ValueError – If no mask is initialized.
- Return type:
Examples
>>> import bandhic as bh >>> mat = bh.band_hic_matrix(np.eye(4), diag_num=2, mask = ([0,1],[1,2])) >>> mat.filled() band_hic_matrix(shape=(4, 4), diag_num=2, dtype=float64)