Unified wrapper for detecting outlier variants due to LD-summary statistic
mismatches. Dispatches to either dentistSingleWindow or
slalom based on the method argument.
Usage
ldMismatchQc(
zScore,
R = NULL,
X = NULL,
nSample = NULL,
method = c("slalom", "dentist"),
ldMethod = "sample",
...
)Arguments
- zScore
Numeric vector of z-scores.
- R
Square LD correlation matrix. Provide either
RorX.- X
Genotype matrix (samples x SNPs). If provided, LD is computed via
computeLdandnSampledefaults tonrow(X).- nSample
Number of samples in the LD reference panel. Required when
Ris provided andmethod = "dentist"; inferred fromXwhenXis provided.- method
Character string specifying the QC method:
"slalom"(default) or"dentist".- ldMethod
Character string specifying the LD computation method when
Xis provided. One of"sample"(default),"population", or"gcta". Ignored whenRis provided directly.- ...
Additional arguments passed to the underlying QC method (
dentistSingleWindoworslalom).
Value
A data frame with at least a logical outlier column indicating
which variants are identified as outliers. The remaining columns depend on
the method used.