[Feature] pass through fields to regression methods


#1

We’ve added a new feature to the following methods:

These methods now all have a new argument, pass_through. This is a way to specify additional row fields in the matrix table to be added (“passed through”) to the resulting table (by default, only the key fields are passed through).

For example, you can include the rsid field with:

result = hl.linear_regression_rows(
    y=mt.phenotype,
    x=mt.GT.n_alt_alleles(),
    covariates=[1, mt.cov1, mt.cov2],
    pass_through=(mt.rsid))