Description Usage Arguments Value Author(s) References Examples
Allows to compute the HOrizontal Pleiotropy Score (HOPS) from the matrix of whitened Zscores.
1 |
ZscoreWhitenedMatrix |
a data.frame of Z-scores with SNPs in rows and traits in columns. Careful no to include any column with SNP ids, SNP ids should be specified using the argument 'RSids', only Zscores should be included. |
RSids |
Character vector of RS ids, in the same order as rows of ZscoreWhitenedMatrix, used to match the SNPs to LD scores for the LD-corrected HOPS (in case argument 'LDCorrected' set to TRUE). RS ids must be in build 38. |
LDCorrected |
Boolean, TRUE if LD-corrected HOPS should be computed. Default is TRUE. |
POLYGENICITYCorrected |
Boolean, TRUE if polygenicity-corrected HOPS should be computed. Default is FALSE. |
NBSim |
Integer, Number of permutations to compute empirical P-values in case POLYGENICITYCorrected is set to TRUE. Default is 25. |
GlobalTest |
Boolean, if TRUE the results of the global test testing for a shift in the distribution of the HOPS for all SNPs. Default is FALSE. |
GlobalTest |
if 'GlobalTest' set to TRUE, P-value of the global test. |
HOPS |
data.frame containing the HOrizontal Pleiotropy Score (HOPS) for all SNPs |
Marie Verbanck
Daniel Jordan*, Marie Verbanck* and Ron Do. HOPS: a quantitative score reveals pervasive horizontal pleiotropy in human genetic variation is driven by extreme polygenicity of human traits and diseases. Genome Biology 20, 222 (2019).
1 2 3 4 5 6 7 8 9 | # Load a subset of the UK Biobank summary statistics
data(UKBiobank_ZscoresSubset)
# Apply the whitening procedure
ZscoreMatrixWhitened_UKBB <- GetWhitenedZscores(ZscoreMatrix = ZscoreMatrix_UKBB, ZscoreCorMatrix = ZscoreCorMatrix_UKBB)
# Get the LD-corrected HOPS
HOPS_UKBB <- GetHOPS(ZscoreWhitenedMatrix = ZscoreMatrixWhitened_UKBB, RSids = SNPinfo_UKBB$SNPid, LDCorrected = TRUE, POLYGENICITYCorrected = FALSE, GlobalTest = TRUE)
# Results
GlobalTest_UKBB <- HOPS_UKBB[[1]]
HOPS_UKBB <- HOPS_UKBB[[2]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.