Run an example to estimate the power to detect a specific locus through an excess of de novo protein truncating variants (PTVs) in autism spectrum disorder as the relative risk is varied:
Maximum relative risk (R) = 25
Sample size (N) = 5000 cases
Case to control ratio (r) = 1
P-value threshold (p_thres_denovo_locus) = 2.5e-06
Number of de novo PTVs per person (q) = 0.0996
Proportion of de novo PTVs that mediate risk (f) = 0.05
Prefix for PDF of power (name) = Test3
Color of line in PDF (col) = "#4daf4a"