Skip to content

Commit

Permalink
plots tab - filter out nan data
Browse files Browse the repository at this point in the history
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <abeshoua@mskcc.org>
  • Loading branch information
Abeshouse, Adam A./Sloan Kettering Institute committed Aug 14, 2018
1 parent a24962e commit 6286c2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/resultsView/plots/PlotsTabUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,11 @@ export function makeScatterPlotData(
datum.y = d.value;
datum.value = d.value;
datum.jitter = getJitterForCase(d.uniqueSampleKey);
data.push(datum);

// filter out NaN number values
if (!Number.isNaN(datum.x as any) && !Number.isNaN(datum.y as any)) {
data.push(datum);
}
}
}
return data;
Expand Down

0 comments on commit 6286c2e

Please sign in to comment.