We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 15a684f + 45fae78 commit f48c4a9Copy full SHA for f48c4a9
genotools/gwas.py
@@ -378,5 +378,13 @@ def run_association(self):
378
# otherwise run GWAS with no covars
379
else:
380
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
389
390
return assoc
0 commit comments