Skip to content

Conversation

jmarshall
Copy link
Contributor

Rewrite remaining invocations of hl.cond() to hl.if_else(). There are already numerous instances of hl.if_else() in gnomad_methods, so this has no compatibility considerations.

Also (in gnomad/utils/file_utils.py) import GoogleStorageAsyncFS from its modern location. This has been hailtop.aiocloud.aiogoogle since hail 2.0.78 (see hail-is/hail#10898 and hail-is/hail#10974). If gnomad_methods needs to be compatible with versions of hail prior to 2.0.78, this part of the change should be omitted.

Very minor, but a few of these appear in our test logs which makes for noise when tracking down other problems via the logs.

Rewrite invocations of hl.cond() to hl.if_else().
Also import GoogleStorageAsyncFS from its modern location.
Copy link
Contributor

@KoalaQin KoalaQin left a comment

Choose a reason for hiding this comment

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

Are we changing this in gnomad_qc too? Or keep hl.cond in older releases?

@jkgoodrich jkgoodrich merged commit 6183ad9 into broadinstitute:main Aug 17, 2023
@jmarshall jmarshall deleted the avoid-deprecated branch August 17, 2023 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants