bandhic.band_hic_matrix.count_unmasked#

band_hic_matrix.count_unmasked()[source]#

Count the number of unmasked entries in the banded matrix.

Returns:

Number of unmasked entries in the banded matrix.

Return type:

int

Examples

>>> import bandhic as bh
>>> mat = bh.band_hic_matrix(np.eye(4), diag_num=2)
>>> mat.count_unmasked()
16