b773c3bf26cde0c8a3b848bc5ad082d3a271c092,hicexplorer/chicSignificantInteractions.py,,compute_new_p_values,#,177
Before Change
if pData[key][-3] <= pPValue:
accepted[key] = pData[key]
log.debug("pMergedLinesDict[key {}".format(pMergedLinesDict[key] ))
for line in pMergedLinesDict[key]:
log.debug("line[:3] {}".format(line[:3]))
accepted_lines.append(line[:3])
After Change
try:
pData[key][-3] = 1 - pBackgroundSumOfDensities[key][int(float(pData[key][-1]))]
except:
pData[key][-3] = 1 - pBackgroundSumOfDensities[key][-1]
log.error("Not enough p-values precomputed, using highest value instead. Please increase --xFoldMaxValueNB value. Value {}, max value {}".format(int(float(pData[key][-1])), len(pData[key])))
// exit(1)
if pData[key][-3] <= pPValue:
accepted[key] = pData[key]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: deeptools/HiCExplorer
Commit Name: b773c3bf26cde0c8a3b848bc5ad082d3a271c092
Time: 2019-07-13
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicSignificantInteractions.py
Class Name:
Method Name: compute_new_p_values
Project Name: unitedstates/congress-legislators
Commit Name: ced1a983c88c1d3879c25b83b94e3b8c8aa132f2
Time: 2018-12-16
Author: jt@occams.info
File Name: test/validate.py
Class Name:
Method Name: check_id_types
Project Name: fperazzi/proSR
Commit Name: 6b7b82ff60b8ca7a26b50e50210a06a46bdc848a
Time: 2018-07-09
Author: fperazzi@adobe.com
File Name: lib/prosr/models/generators.py
Class Name: ProSR
Method Name: forward