INNER CODE UNIT · Python
run_target_list_compilation
deeptools/HiCExplorer · hicexplorer/chicAggregateStatistic.py:201
def run_target_list_compilation(pInteractionFilesList, pTargetList, pTargetFType, pTargetPosDict, pArgs, pViewpointObj, pQueue=None, pOneTarget=False):
outfile_names_list = []
accepted_scores_list = []
target_regions_intervaltree = None
try:
if pTargetFType == 'bed3':
try:
target_regions = utilities.readBed(pTargetList)
except Exception as exp:
pQueue.put('Fail: ' + str(exp) + traceback.format_exc())
return
hicmatrix = hm.hiCMatrix()
target_regions_intervaltree = hicmatrix.intervalListToIntervalTree(target_regions)[0]
for i, interactionFile in enumerate(pInteractionFilesList):
outfile_names_list_intern = []
accepted_scores_list_intern = []
for sample in interactionFile: