Skip to content

Commit

Permalink
fixup: short and long allele count transposed
Browse files Browse the repository at this point in the history
  • Loading branch information
phildarnowsky-broad committed Jan 14, 2025
1 parent f4200e9 commit 8213175
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
)
Expand Down

0 comments on commit 8213175

Please sign in to comment.