Skip to content

Commit

Permalink
Fixed a problem with multi-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao-chen-xc committed May 5, 2020
1 parent 1b543f3 commit a31c8d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions depth_calling/bin_count.py
Original file line number Diff line number Diff line change
@@ -209,6 +209,7 @@ def count_reads_and_prepare_for_normalization(
region_groups = partition(lregion, nCores)
pool = mp.Pool(nCores)
result = pool.map(get_normed_depth_bam, region_groups)
pool.close()
for result_group in result:
for region_out in result_group:
counts_for_normalization.append(region_out[0])

0 comments on commit a31c8d5

Please sign in to comment.