bandhic.band_hic_matrix.count_masked#

band_hic_matrix.count_masked()[source]#

Count the number of masked entries in the banded matrix.

This counts the number of entries in the upper triangular part of the matrix, excluding the diagonal and valid entries.

Returns:

Number of valid 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_masked()
0