R/ctwas_diagnose_LD_mismatch.R
diagnose_LD_mismatch_susie.Rd
Diagnose LD mismatch using SuSiE RSS
diagnose_LD_mismatch_susie(
z_snp,
region_ids,
LD_map,
gwas_n,
p_diff_thresh = 5e-08,
LD_format = c("rds", "rdata", "mtx", "csv", "txt", "custom"),
LD_loader_fun,
ncore = 1,
logfile = NULL
)
A data frame with two columns: "id", "A1", "A2", "z". giving the z scores for snps. "A1" is effect allele. "A2" is the other allele.
A vector of region IDs to run diagnosis
a data frame with filenames of LD matrices and SNP information for each of the regions.
integer, GWAS sample size.
numeric, p-value threshold for identifying problematic SNPs with significant difference between observed z-scores and estimated values
file format for LD matrix. If "custom", use a user defined
LD_loader_fun()
function to load LD matrix.
a user defined function to load LD matrix when LD_format = "custom"
.
integer, number of cores for parallel computing.
the log file, if NULL will print log info on screen
a list of problematic SNPs, flipped SNPs, and test statistics from susie's `kriging_rss` function