Skip to content

Commit

Permalink
fix: Proper counting in variation landscape plot (#495) (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Feb 12, 2024
1 parent 29e5a6d commit 8f4a0a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/GeneClinvarCard/VariationLandscapePlotly.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ const layout = {
const updatePlotData = (minX: number, maxX: number) => {
// Filter clinvarData for new boundaries and compute new downsampled data
const windowSize = (maxX - minX) / 700
const filteredClinvarData = clinvarData.value.filter((item) => item.x >= minX && item.x <= maxX)
const newDownsampledData = downsample(filteredClinvarData, windowSize, minX, maxX)
const newDownsampledData = downsample(clinvarData.value, windowSize, minX, maxX)
trace.x = newDownsampledData.map((item) => item.x)
trace.y = newDownsampledData.map((item) => item.y)
trace.marker.color = newDownsampledData.map((item) => markerColor(item.y))
Expand Down

0 comments on commit 8f4a0a7

Please sign in to comment.