def make_qq_unstratified(variants, include_qq):
neglog10_pvals = sorted((v.neglog10_pval for v in variants), reverse=True)
rv = {}
if include_qq:
rv['qq'] = compute_qq(neglog10_pvals)
rv['count'] = len(neglog10_pvals)
rv['gc_lambda'] = {}
for perc in ['0.5', '0.1', '0.01', '0.001']:
gc = gc_value_from_list(neglog10_pvals, float(perc))
if math.isnan(gc) or abs(gc) == math.inf:
print('WARNING: got gc_value {!r}'.format(gc))
else:
rv['gc_lambda'][perc] = round_sig(gc, 5)
return rv
评论列表
文章目录