INNER CODE UNIT · Python
chromosome
deeptools/HiCExplorer · hicexplorer/chicAggregateStatistic.py:91
chromosome = [chromosome] * len(start_list)
target_regions = list(zip(chromosome, start_list, end_list))
if len(target_regions) == 0:
return accepted_scores
hicmatrix = hm.hiCMatrix()
target_regions_intervaltree = hicmatrix.intervalListToIntervalTree(target_regions)[0]
for key in pScoresDictionary:
chromosome = pScoresDictionary[key][0]
start = int(pScoresDictionary[key][1])
end = int(pScoresDictionary[key][2])
if chromosome in target_regions_intervaltree:
target_interval = target_regions_intervaltree[chromosome][start:end]
else:
continue
if target_interval: