From 8213175fddc1af7d0b1e351175d6ed89a7e0ac1f Mon Sep 17 00:00:00 2001 From: Phil Darnowsky Date: Tue, 14 Jan 2025 13:45:40 -0500 Subject: [PATCH] fixup: short and long allele count transposed --- .../ShortTandemRepeatGenotypeDistributionPlot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/src/ShortTandemRepeatPage/ShortTandemRepeatGenotypeDistributionPlot.tsx b/browser/src/ShortTandemRepeatPage/ShortTandemRepeatGenotypeDistributionPlot.tsx index cf4269fd6..ff016df69 100644 --- a/browser/src/ShortTandemRepeatPage/ShortTandemRepeatGenotypeDistributionPlot.tsx +++ b/browser/src/ShortTandemRepeatPage/ShortTandemRepeatGenotypeDistributionPlot.tsx @@ -105,8 +105,8 @@ const ShortTandemRepeatGenotypeDistributionPlot = withSize()( genotypeDistribution.forEach( ({ short_allele_repunit_count, long_allele_repunit_count, frequency }) => { - const xBinIndex = Math.floor(short_allele_repunit_count / xBinSize) - const yBinIndex = Math.floor(long_allele_repunit_count / yBinSize) + const xBinIndex = Math.floor(long_allele_repunit_count / xBinSize) + const yBinIndex = Math.floor(short_allele_repunit_count / yBinSize) data[xBinIndex * yNumBins + yBinIndex].count += frequency } )