Skip to content

Commit 5e5ffb6

Browse files
authored
Merge pull request #83 from uclahs-cds/nzeltser-add-auc-plotting
add auc plotting
2 parents 0e0bbdb + cb78d08 commit 5e5ffb6

File tree

7 files changed

+1054
-1
lines changed

7 files changed

+1054
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Imports:
2727
Suggests:
2828
knitr,
2929
rmarkdown,
30+
scales,
3031
testthat (>= 3.0.0)
3132
Config/testthat/edition: 3
3233
License: GPL-2

NAMESPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,21 @@ importFrom(
1818
'colorRampPalette',
1919
'col2rgb'
2020
);
21+
2122
importFrom(
2223
'stats',
2324
'aggregate',
2425
'as.formula',
2526
'binomial',
27+
'coef',
28+
'complete.cases',
2629
'glm',
2730
'lm',
2831
'na.omit',
32+
'pnorm',
2933
'predict',
3034
'quantile',
35+
'vcov',
3136
'setNames'
3237
);
3338
importFrom(
@@ -50,6 +55,7 @@ export(
5055
import.pgs.weight.file,
5156
import.vcf,
5257
parse.pgs.input.header,
58+
analyze.pgs.binary.predictiveness,
5359
create.pgs.density.plot,
5460
create.pgs.boxplot,
5561
create.pgs.rank.plot,

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Added new plotting function `create.pgs.boxplot`
1313
* Added option for user to provide custom PGS source column(s) for plotting functions
1414
* Added option to `assess.pgs.vcf.allele.match` to condition the handling of ambiguous strand flips on the total number of unambiguous strand flips.
15+
* Added new function `analyze.pgs.binary.predictiveness` which given a PGS and phenotypes runs a logistic regression and returns statistics (OR, p-value, AUC) describing how well the PGS predicts the phenotype. It also automatically plots a receiver-operator-curve.
1516

1617
# ApplyPolygenicScore 3.0.2
1718

R/run-pgs-statistics.R

Lines changed: 515 additions & 0 deletions
Large diffs are not rendered by default.

man/analyze.pgs.binary.predictiveness.Rd

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)