e8a8edec508fcf886d5c6329ff0729b1cff845e8,hicexplorer/utilities.py,,exp_obs_matrix_norm,#Any#Any#Any#,287

Before Change



    expected_interactions_in_distance_ = expected_interactions_norm(pLength_chromosome, pChromosome_count, 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])

After Change



    row, col = pSubmatrix.nonzero()
    // data = pSubmatrix.data.tolist()
    for i in range(len(row)):
        expected = expected_interactions_in_distance[np.absolute(row[i]-col[i])] 
        expected /= row_sums[row[i]] * row_sums[col[i]] / total_interactions
        pSubmatrix.data[i] /= expected
    return pSubmatrix

def toString(s):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deeptools/HiCExplorer
Commit Name: e8a8edec508fcf886d5c6329ff0729b1cff845e8
Time: 2018-09-04
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: exp_obs_matrix_norm


Project Name: WheatonCS/Lexos
Commit Name: e64a027b9a50e6a10e520aeaa540adf60ceeb87c
Time: 2017-08-15
Author: darias0826@gmail.com
File Name: lexos/processors/prepare/cutter.py
Class Name:
Method Name: cut_by_number


Project Name: enthought/chaco
Commit Name: 921f172b639a9cc81b9374f5fed9c31a8a396908
Time: 2009-02-09
Author: warren.weckesser@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/scales/scales.py
Class Name: LogScale
Method Name: ticks