-
Notifications
You must be signed in to change notification settings - Fork 1
Separators in purity ploidy are inconsistent with the #51
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinghigh priority / sprinthigh priority items or aligned with week's sprinthigh priority items or aligned with week's sprintholdspec needs to be updatedspec needs to be updated
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghigh priority / sprinthigh priority items or aligned with week's sprinthigh priority items or aligned with week's sprintholdspec needs to be updatedspec needs to be updated