Skip to content

Commit 8213175

Browse files
fixup: short and long allele count transposed
1 parent f4200e9 commit 8213175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/src/ShortTandemRepeatPage/ShortTandemRepeatGenotypeDistributionPlot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ const ShortTandemRepeatGenotypeDistributionPlot = withSize()(
105105

106106
genotypeDistribution.forEach(
107107
({ short_allele_repunit_count, long_allele_repunit_count, frequency }) => {
108-
const xBinIndex = Math.floor(short_allele_repunit_count / xBinSize)
109-
const yBinIndex = Math.floor(long_allele_repunit_count / yBinSize)
108+
const xBinIndex = Math.floor(long_allele_repunit_count / xBinSize)
109+
const yBinIndex = Math.floor(short_allele_repunit_count / yBinSize)
110110
data[xBinIndex * yNumBins + yBinIndex].count += frequency
111111
}
112112
)

0 commit comments

Comments
 (0)