bandhic.ones_like#

bandhic.ones_like(other, dtype=None)[source]#

Create a band_hic_matrix object matching another matrix, filled with ones.

Parameters:

other (band_hic_matrix) – Reference matrix.

Returns:

A band_hic_matrix object matching other, filled with ones.

Return type:

band_hic_matrix

Examples

>>> mat_ref = zeros((4, 4), diag_num=2)
>>> mat = ones_like(mat_ref)
>>> isinstance(mat, band_hic_matrix)
True