Skip to content

Commit

Permalink
Slightly revise entropy blending on branches
Browse files Browse the repository at this point in the history
It had been such that a branch with 80% certainty in a particular location was completely gray. This felt off. In the revised behavior, we hit fully gray at about 50% certainty. This originally leaned quite heavily on gray because we were concerned that measures like 80% shouldn't actually be interpreted as "80%" due to over-confidence in the phylogeo reconstruction. Now, augur traits has --sampling-bias-correction, which corrects this at the source. Better to have auspice give an honest accounting at this point.
  • Loading branch information
trvrb committed Feb 17, 2020
1 parent 4abd3fd commit 8a00a23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/colorHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ export const calcNodeColor = (tree, colorScale) => {
};


// scale entropy such that higher entropy maps to a grayer less-certain branch
const branchInterpolateColour = "#BBB";
const branchOpacityConstant = 0.6;
const branchOpacityLowerBound = 0.4;
export const branchOpacityFunction = scalePow()
.exponent([0.3])
.domain([0, 1])
.range([branchOpacityLowerBound, 1])
.exponent([0.6])
.domain([0, 2.0])
.range([0.4, 1])
.clamp(true);
// entropy calculation precomputed in augur
// export const calcEntropyOfValues = (vals) =>
Expand Down

0 comments on commit 8a00a23

Please sign in to comment.