From eff9c37be9024f705f84ce5135360ab44ff29a42 Mon Sep 17 00:00:00 2001 From: Alexander Young Date: Thu, 20 Jul 2023 09:39:18 -0700 Subject: [PATCH] fix bug in loading sibling pgs --- snipar/pgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snipar/pgs.py b/snipar/pgs.py index a48cebc9..11b985a3 100644 --- a/snipar/pgs.py +++ b/snipar/pgs.py @@ -616,7 +616,7 @@ def fit_pgs_model(y, pg, ngen, ibdrel_path=None, covariates=None, fit_sib=False, alpha, alpha_cols = make_and_fit_model(y, pg, ['proband'], ibdrel_path=ibdrel_path, covariates=covariates, sparse_thresh=sparse_thresh) elif ngen==2 or ngen==3: if fit_sib: - if 'sib' in pg.sid: + if 'sibling' in pg.sid: pg_cols = ['proband','sibling'] else: raise(ValueError('Sibling PGS not found (use --fit_sib when calculating PGS)'))