elif chr_element >= len(chromosome_list) and queue[i] is None:
thread_done[i] = True
else:
time.sleep(1)
if chr_element >= len(chromosome_list):
all_threads_done = True
for thread in thread_done:
if not thread:
After Change
if dataFrameMatrix is None:
dataFrameMatrix = dataFrameMatrix_
else:
dataFrameMatrix = pd.concat([dataFrameMatrix, dataFrameMatrix_], ignore_index=True) // .append(dataFrameMatrix_, ignore_index=True)
dataFrameBins_ = None
dataFrameMatrix_ = None
queue[i] = None
process[i].join()
process[i].terminate()
process[i] = None
thread_done[i] = True
elif chr_element >= len(chromosome_list) and queue[i] is None:
thread_done[i] = True
if chr_element >= len(chromosome_list):
all_threads_done = True
for thread in thread_done:
if not thread:
all_threads_done = False
hic.save_cool_pandas(args.outFileName, dataFrameBins, dataFrameMatrix)
else:
hic = hm.hiCMatrix(args.matrices[0])
summed_matrix = hic.matrix