refs #18581
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
type onehotXref struct {
tag tagID
variant tileVariantID
- het bool
+ hom bool
pvalue float64
}
xref = append(xref, onehotXref{
tag: tag,
variant: tileVariantID(col >> 1),
- het: col&1 == 1,
+ hom: col&1 == 0,
pvalue: p,
})
}
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)