Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkpoint after to_dense_mt for trio stats #641

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Conversation

KoalaQin
Copy link
Contributor

No description provided.

@@ -481,6 +481,7 @@ def run_generate_trio_stats(
rmt = rmt.filter_cols(hl.is_defined(vmt.cols()[rmt.col_key]))

mt = hl.vds.to_dense_mt(hl.vds.VariantDataset(rmt, vmt))
mt = mt.checkpoint(hl.utils.new_temp_file("trio_stats_dense", "mt"), overwrite=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mt = mt.checkpoint(hl.utils.new_temp_file("trio_stats_dense", "mt"), overwrite=True)
mt = mt.checkpoint(hl.utils.new_temp_file("trio_stats_dense", "mt"))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the overwrite arg isn't needed when using new_temp_file

Copy link
Contributor Author

@KoalaQin KoalaQin Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L560, L621, L665 had overwrite too, should I remove them?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah those can be removed too

Copy link
Contributor

@klaricch klaricch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@KoalaQin KoalaQin merged commit 756d5d3 into main Oct 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants