ee1254bbab3c5a12b179ae636c105aefbaa49fbd,hicexplorer/utilities.py,,obs_exp_matrix,#Any#,359

Before Change



    expected_interactions_in_distance_ = expected_interactions(pSubmatrix)
    row, col = pSubmatrix.nonzero()
    distance = np.ceil(np.absolute(row - col) / 2).astype(np.int32)

    if len(pSubmatrix.data) > 0:
        data_type = type(pSubmatrix.data[0])

        expected = expected_interactions_in_distance_[distance]
        pSubmatrix.data = pSubmatrix.data.astype(np.float32)
        pSubmatrix.data /= expected
        pSubmatrix.data = convertInfsToZeros_ArrayFloat(pSubmatrix.data).astype(data_type)
    return pSubmatrix

After Change


    
    expected_interactions_in_distance_ = expected_interactions(pSubmatrix)
    row, col = pSubmatrix.nonzero()
    distance = np.absolute(row - col).astype(np.int32)

    if len(pSubmatrix.data) > 0:
        expected = expected_interactions_in_distance_[distance]
        pSubmatrix.data = pSubmatrix.data.astype(np.float32)
        pSubmatrix.data /= expected
        pSubmatrix.data = convertInfsToZeros_ArrayFloat(pSubmatrix.data)

    return pSubmatrix
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deeptools/HiCExplorer
Commit Name: ee1254bbab3c5a12b179ae636c105aefbaa49fbd
Time: 2018-11-23
Author: rabbani@pc390.immunbio.mpg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: obs_exp_matrix


Project Name: deeptools/HiCExplorer
Commit Name: 64979217d07042ba2999696b021a65ce761f798e
Time: 2019-01-18
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: obs_exp_matrix


Project Name: virajmavani/semi-auto-image-annotation-tool
Commit Name: 20759ce7921b24160b7608ad6ebbb338c19853fb
Time: 2020-04-11
Author: 31489611+QuickLearner171998@users.noreply.github.com
File Name: main.py
Class Name:
Method Name: