I would like to add a matrixtable row “new_AF” to my logistic regression output table by matching the locus and alleles. Both mt_rows and log_reg (ht) is keyed to locus and allele.
If I run
log_reg2 = log_reg.annotate(AF = mt.index_rows(log_reg.key).new_AF)
I get error
“ExpressionException: Key type mismatch: cannot index matrix table with given expressions:
MatrixTable row key: locus, array
Index expressions: str, array”
Not exactly certain what the error means or how to merge.
Thanks,
Kelly