Skip to content

Commit f48c4a9

Browse files
authored
Merge pull request #195 from dvitale199/pipeline
fix assoc pipeline error
2 parents 15a684f + 45fae78 commit f48c4a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

genotools/gwas.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,5 +378,13 @@ def run_association(self):
378378
# otherwise run GWAS with no covars
379379
else:
380380
assoc['gwas'] = self.run_gwas(covars=False)
381+
382+
# create an overall assoc pass flag
383+
if self.pca and self.gwas:
384+
assoc['pass'] = True if ((assoc['pca']['pass']) and (assoc['gwas']['pass'])) else False
385+
elif self.pca:
386+
assoc['pass'] = True if (assoc['pca']['pass']) else False
387+
else:
388+
assoc['pass'] = True if (assoc['gwas']['pass']) else False
381389

382390
return assoc

0 commit comments

Comments
 (0)