I’m working on a function that accepts hail expressions for some of the parameters:
def filter_to_clinvar_pathogenic(
t: Union[hl.MatrixTable, hl.Table],
clnrevstat_expr: hl.ArrayExpression,
clnsig_expr: hl.ArrayExpression,
clnsigconf_expr: hl.ArrayExpression,
remove_no_assertion: bool = True,
remove_conflicting: bool = True,
)
Is it possible to pass in default values for hail expression variables ex: clnsig_expr: hl.ArrayExpression = default_ht.clnsig_expr
? We weren’t sure about how hail expressions might behave.
There’s a github discussion thread that explains what we’re interested in doing in more detail here: https://github.com/broadinstitute/gnomad_methods/pull/257#discussion_r546100414