We’ve added a new feature to the following methods:
- linear_regression_rows
- logistic_regression_rows
- poisson_regression_rows
- linear_mixed_regression_rows
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))