Skip to content

Commit 239a298

Browse files
committed
fix write
1 parent dc577e7 commit 239a298

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

gnomad/sample_qc/ancestry.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,10 @@ def assign_population_pcs(
384384
if hail_input:
385385
pops_ht = hl.Table.from_pandas(pop_pc_pd, key=list(pop_pca_scores.key))
386386

387-
pops_ht.write(new_temp_file("pops_ht", "ht"))
388-
pops_ht = hl.read_table(
389-
new_temp_file("pops_ht", "ht"), _n_partitions=n_partitions
390-
)
387+
tmp_path = new_temp_file("pops_ht", "ht")
388+
389+
pops_ht.write(tmp_path)
390+
pops_ht = hl.read_table(tmp_path, _n_partitions=n_partitions)
391391

392392
pops_ht = pops_ht.annotate_globals(
393393
assign_pops_from_pc_params=hl.struct(min_assignment_prob=min_prob)

0 commit comments

Comments
 (0)