Skip to content

Commit

Permalink
AG-1344 GCT bug fix for zero p-values
Browse files Browse the repository at this point in the history
  • Loading branch information
sagely1 committed Feb 12, 2024
1 parent 0c19150 commit 7e0740a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -912,15 +912,20 @@ export class GeneComparisonToolComponent implements OnInit, AVI, OnDestroy {
const tissue = gene.tissues.find((t) => t.name === tissueName);
let size = 0;
let color = '#F0F0F0';
const CIRCLE_MAX_SIZE = 50;

if (tissue?.adj_p_val) {
size = this.getCircleSize(tissue.adj_p_val);
}

if (size === 0) {
size = CIRCLE_MAX_SIZE;
}

if (tissue?.logfc) {
color = this.getCircleColor(tissue.logfc);
}

return {
display: size ? 'block' : 'none',
width: size + 'px',
Expand Down

0 comments on commit 7e0740a

Please sign in to comment.