We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc577e7 commit 239a298Copy full SHA for 239a298
1 file changed
gnomad/sample_qc/ancestry.py
@@ -384,10 +384,10 @@ def assign_population_pcs(
384
if hail_input:
385
pops_ht = hl.Table.from_pandas(pop_pc_pd, key=list(pop_pca_scores.key))
386
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
- )
+ tmp_path = new_temp_file("pops_ht", "ht")
+
+ pops_ht.write(tmp_path)
+ pops_ht = hl.read_table(tmp_path, _n_partitions=n_partitions)
391
392
pops_ht = pops_ht.annotate_globals(
393
assign_pops_from_pc_params=hl.struct(min_assignment_prob=min_prob)
0 commit comments