Slalom Function for Summary Statistics QC for Fine-Mapping Analysis
Source:R/sumstatsQc.R
slalom.RdPerforms Approximate Bayesian Factor (ABF) analysis, identifies credible sets, and annotates lead variants based on fine-mapping results. It computes p-values from z-scores assuming a two-sided standard normal distribution.
Arguments
- zScore
Numeric vector of z-scores corresponding to each variant.
- R
Square LD correlation matrix. Provide either
RorX.- X
Genotype matrix (samples x SNPs). With
ldMethod = "sample"only the lead variant's LD column is computed from it; any otherldMethodcomputes the LD matrix viacomputeLd(X).- standardError
Optional numeric vector of standard errors corresponding to each z-score. If not provided, a default value of 1 is assumed for all variants.
- abfPriorVariance
Numeric, the prior effect size variance for ABF calculations. Default is 0.04.
- nlog10pDentistSThreshold
Numeric, the -log10 DENTIST-S P value threshold for identifying outlier variants for prediction. Default is 4.0.
- r2Threshold
Numeric, the r2 threshold for DENTIST-S outlier variants for prediction. Default is 0.6.
- leadVariantChoice
Character, method to choose the lead variant, either "pvalue" or "abf", with default "pvalue".
- ldMethod
Character string specifying the LD computation method when
Xis provided:"sample"(default), which uses the genotypes directly, or"population"or"gcta", which go throughcomputeLd. Ignored whenRis provided directly.
Value
A list containing the annotated LD matrix with ABF results, credible sets, lead variant, and DENTIST-S statistics; and a summary dataframe with aggregate statistics.
Details
Provide either an LD correlation matrix R or a genotype matrix
X. SLALOM needs only the lead variant's LD with the others, so with
ldMethod = "sample" it computes that one column from the genotypes
and never forms the LD matrix.
See also
dentistSingleWindow, resolveLdInput