Skip to content

Commit 153bb0d

Browse files
committed
add a checkpoint
1 parent 2f053c7 commit 153bb0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v03_pipeline/lib/tasks/write_new_variants_table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
)
1111
from v03_pipeline.lib.misc.allele_registry import register_alleles_in_chunks
1212
from v03_pipeline.lib.misc.callsets import get_callset_ht
13-
from v03_pipeline.lib.misc.io import remap_pedigree_hash
13+
from v03_pipeline.lib.misc.io import checkpoint, remap_pedigree_hash
1414
from v03_pipeline.lib.misc.math import constrain
1515
from v03_pipeline.lib.model import (
1616
Env,
@@ -194,6 +194,7 @@ def create_table(self) -> hl.Table:
194194
self.reference_genome,
195195
):
196196
ar_ht = ar_ht.union(ar_ht_chunk)
197+
ar_ht, _ = checkpoint(ar_ht)
197198
new_variants_ht = new_variants_ht.join(ar_ht, 'left')
198199
elif self.dataset_type.should_send_to_allele_registry:
199200
new_variants_ht = new_variants_ht.annotate(CAID=hl.missing(hl.tstr))

0 commit comments

Comments
 (0)