bandhic.band_hic_matrix.tocoo#

band_hic_matrix.tocoo()[source]#

Convert the matrix to COO format.

Returns:

The matrix in scipy COO sparse format.

Return type:

coo_array

Examples

>>> import bandhic as bh
>>> mat = bh.ones((3,3), diag_num=2)
>>> coo = mat.tocoo()
>>> coo.shape
(3, 3)