Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AG-1346 GCT bug fix for zero p-values showing wrong circle size #1282

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;
sagely1 marked this conversation as resolved.
Show resolved Hide resolved
let color = '#F0F0F0';
const CIRCLE_MAX_SIZE = 50;

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

if (size === 0) {
Copy link
Contributor Author

@sagely1 sagely1 Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if circle size is zero, it should have the max size of circle as the p-value is inversely proportional to the size of the circle.

size = CIRCLE_MAX_SIZE;
}
sagely1 marked this conversation as resolved.
Show resolved Hide resolved

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

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