36fc1f66e2944cc2c64e9c56517316f2e61e03d5,hicexplorer/chicSignificantInteractions.py,,merge_neighbors_loose_p_value,#,245

Before Change


def merge_neighbors_loose_p_value(pLoosePValue, pData, pViewpointObj, pResolution, pTruncateZeroPvalues):
    accepted = {}
    accepted_line = {}
    for key in pData[1]:
        if pTruncateZeroPvalues:
            if pData[1][key][1] == 0 or pData[1][key][1] > pLoosePValue:
                continue
        else:
            if pData[1][key][1] > pLoosePValue:
                continue
        accepted[key] = pData[1][key]
        accepted_line[key] = pData[2][key]
    if accepted_line:
        return pViewpointObj.merge_neighbors(accepted_line, pMergeThreshold=pResolution)
    return accepted_line, None

After Change


                    continue
            accepted[key] = pData[1][key]
            accepted_line[key] = pData[2][key]
    elif isinstance(pLoosePValue, dict):
        for key in pData[1]:
            if pTruncateZeroPvalues:
                if pData[1][key][1] == 0 or pData[1][key][1] > pLoosePValue[key]:
                    continue
            else:
                if pData[1][key][1] > pLoosePValue[key]:
                    continue
            accepted[key] = pData[1][key]
            accepted_line[key] = pData[2][key]
    if accepted_line:
        return pViewpointObj.merge_neighbors(accepted_line, pMergeThreshold=pResolution)
    return accepted_line, None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: deeptools/HiCExplorer
Commit Name: 36fc1f66e2944cc2c64e9c56517316f2e61e03d5
Time: 2020-04-15
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicSignificantInteractions.py
Class Name:
Method Name: merge_neighbors_loose_p_value


Project Name: EpistasisLab/scikit-rebate
Commit Name: 16798854e7fbca553416409be8f9ff6f71204dac
Time: 2021-02-15
Author: robertzhang100@gmail.com
File Name: skrebate/scoring_utils.py
Class Name:
Method Name: ReliefF_compute_scores


Project Name: deeptools/HiCExplorer
Commit Name: 36fc1f66e2944cc2c64e9c56517316f2e61e03d5
Time: 2020-04-15
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicSignificantInteractions.py
Class Name:
Method Name: merge_neighbors_loose_p_value


Project Name: deeptools/HiCExplorer
Commit Name: 36fc1f66e2944cc2c64e9c56517316f2e61e03d5
Time: 2020-04-15
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicSignificantInteractions.py
Class Name:
Method Name: merge_neighbors_x_fold


Project Name: EpistasisLab/scikit-rebate
Commit Name: 16798854e7fbca553416409be8f9ff6f71204dac
Time: 2021-02-15
Author: robertzhang100@gmail.com
File Name: skrebate/scoring_utils.py
Class Name:
Method Name: SURF_compute_scores