From 0689d0a23c71380de140fd5d89da63eaeea449ff Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 4 Mar 2022 14:48:35 -0500 Subject: [PATCH] Change zygosity column info from het=1 to hom=1. refs #18581 Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- slicenumpy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slicenumpy.go b/slicenumpy.go index 8c35e4e425..49b81ca6e0 100644 --- a/slicenumpy.go +++ b/slicenumpy.go @@ -1236,7 +1236,7 @@ func allele2homhet(colpair [2][]int8) { type onehotXref struct { tag tagID variant tileVariantID - het bool + hom bool pvalue float64 } @@ -1306,7 +1306,7 @@ func (cmd *sliceNumpy) tv2homhet(cgs map[string]CompactGenome, maxv tileVariantI xref = append(xref, onehotXref{ tag: tag, variant: tileVariantID(col >> 1), - het: col&1 == 1, + hom: col&1 == 0, pvalue: p, }) } @@ -1335,7 +1335,7 @@ func onehotXref2int32(xrefs []onehotXref) []int32 { for i, xref := range xrefs { xdata[i] = int32(xref.tag) xdata[xcols+i] = int32(xref.variant) - if xref.het { + if xref.hom { xdata[xcols*2+i] = 1 } xdata[xcols*3+i] = int32(xref.pvalue * 1000000) -- 2.30.2