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])
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
def toString(s):
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):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
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: ray-project/ray
Commit Name: 92c2e41dfdb30756a5872578b38b34cd34722d76
Time: 2020-05-24
Author: dooku.wt@antfin.com
File Name: python/ray/state.py
Class Name: GlobalState
Method Name: profile_table
Project Name: google-research/language
Commit Name: b4562327a4554689d8ab0906c605476ccf817336
Time: 2019-11-15
Author: kentonl@google.com
File Name: language/xsp/data_preprocessing/abstract_sql.py
Class Name:
Method Name: _get_from_clause_for_tables
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