Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Fix variance check for single-samples #87

Closed
smlmbrt opened this issue Apr 22, 2024 · 1 comment
Closed

Fix variance check for single-samples #87

smlmbrt opened this issue Apr 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@smlmbrt
Copy link
Member

smlmbrt commented Apr 22, 2024

# Check that PGS has variance (e.g. not all 0)
if 0 in [np.var(results_ref[sum_col]), np.var(results_target[sum_col])]:
scorecols_drop.add(c_pgs)
logger.warning("Skipping adjustment: {} has 0 variance in PGS SUM".format(c_pgs))

Related to: PGScatalog/pgsc_calc#283

@smlmbrt smlmbrt added the bug Something isn't working label Apr 22, 2024
@smlmbrt
Copy link
Member Author

smlmbrt commented Apr 24, 2024

Fixed in: PGScatalog/pygscatalog@b69e9f5

@smlmbrt smlmbrt closed this as completed Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant