Describe the bug
@xanthopoulakis - We need to correct the formula for the red dotted separators in the purity ploidy histogram (Segment Width Distribution). The meaning of the slope and intercept for these are slightly different.
I believe the issue is this expression:
let separators = d3
.range(0, maxSeparatorsCount + 1)
.map((i) => slope * i + intercept);
Below is the pseudocode of the right parameters to use and the final expression:
a = 2 * (1-purity) / 2
b = 1 / beta
ppfit_intercept = a / b
ppfit_slope = beta
ppfit_slope * i + ppfit_intercept
Describe the bug
@xanthopoulakis - We need to correct the formula for the red dotted separators in the purity ploidy histogram (Segment Width Distribution). The meaning of the slope and intercept for these are slightly different.
I believe the issue is this expression:
Below is the pseudocode of the right parameters to use and the final expression: