Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async def impute(args: dict):
batch_regions,
args['use_checkpoints'],
contig,
len(chunks))
len(chunks) * 5)

if union_j is not None:
union_j.depends_on(*union_ligate_input_jobs.get(contig, []))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ def add_info_if_needed(mt):
mt_init = hl.read_matrix_table(paths[0])
intervals = mt_init._calculate_new_partitions(n_partitions)

last_mt_left = None

mt_left = hl.read_matrix_table(paths[0], _intervals=intervals)
mt_left = add_info_if_needed(mt_left)
mt_left = mt_left.annotate_rows(
Expand All @@ -510,6 +512,12 @@ def add_info_if_needed(mt):
drop_right_row_fields=False,
row_join_type='outer')

if idx % 5 == 0:
mt_left = mt_left.persist()
if last_mt_left is not None:
last_mt_left.unpersist()
last_mt_left = mt_left

mt = mt_left

n_batches = len(paths)
Expand Down